Can not open Drizzle Studio in browser
After a successful run of:
-
drizzle-kit generate:pg
- and database migration, based on the generated schema
- the database itself - looks legit. I even managed to seed some data via a custom script.
When I run drizzle-kit studio
and try to open https://local.drizzle.studio, I get the error modal, from the attached screenshot.
Also here is the part of the output, I got inside the dev tools:
I tried to debug by following the dev tools call stack but was dealing with a minified code there, thus - failed.
I would appreciate at least a link to drizzle-kit studio source code (if it is public), to figure out the possible issue.![No description](https://cdn.answeroverflow.com/1225742098255314954/Screenshot_2024-04-05_at_12.32.39.png)
8 Replies
@Kamilius seems like some kind of circular reference... could you share the schema?
@Aaroned sure, here it is:
Sorry, it's around 140 lines...
@Kamilius I think your schema looks good.
Have you seen this: https://github.com/drizzle-team/drizzle-orm/issues/463
Yes, I've seen this one, but the thing is not in querying, but with starting Studio at all
@Kamilius have you tried going back to a fresh db with a basic single table single column schema, to test whether it's a schema issue, or a config/installation issue?
@Aaroned Thanks, you've pushed me toward commenting out everything, and then start to uncomment piece-by-piece.
The issue was - missing
property
specification in relations. Ex:
Now everything works like a charm 🙂
How to mark an answer as "Resolved"?@Kamilius Good find 👍 this is just a chat, so no “resolved” state 👍