Studio stopped working after update to latest stable versions of kit and ORM
I'm on the latest stable versions:
"drizzle-orm": "^0.44.2"
"drizzle-kit": "0.31.2"
After updating today, studio no longer works. Upon running, the instance displays this error: Drizzle Studio requires a new version of Drizzle Kit. Please install the latest version and try again.
Any idea how to resolve? Thanks.
53 Replies
@Budi Hey! Should be fixed.
Error still persists even downgrading to v0.31.1 not helping and I am getting new error after doing that:

same, issue still persists for me
├── drizzle-kit@0.24.2
├── drizzle-orm@0.33.0
+1 same issue here for a while now.
drizzle-orm: 0.44.2
drizzle-kit: 0.31.1
@madhur do you use neon db by any chance? or other db provider
I'm running it on a postgres docker container.
i'm using neon db
thanks Camizz it seems this is a drizzle isolated thing, not neon seeing it's also happening to madhur, hopefully there's a fix soon
I hope we find a resolution soon, I need to do some checks on my schema
nah chill, dev is sleeping he will wake up soon
a github issue has been opened on this
https://github.com/drizzle-team/drizzle-orm/issues/4670
in case it gets more attention there
GitHub
[BUG]: Drizzle ORM showing the error -> n.trimChar is not a functio...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.44.2 What version of drizzle-kit...
It seems the error remains due to the cache. Try a hard refresh.

@⚡Z.E.U.S⚡ @wicod @<Camizz /> I did the following on my end:
1. Deleted node modules
2. Made changes in
package.json
to the following by removing the ^
:
3. Ran npm install
and reseeded my local database.
4. Ran npx drizzle-kit studio
and did a hard refresh to clear cache.
It's working now.Only step 4 is needed to solve this problem.
Nice this is now fixed for me. What changed?
Taken alternation engine from Drizzle Kit, added RLS and Schema Studio where you can manage your database entities.

It worked, thank you very much indeed s2
Thanks
Oh that's cool. Thanks!
The enum viewer is awesome
Hi, having the same issue here, did open a help chat too #Issue with Drizzle Kit, same issue as @Budi
@rontheline
oh, must of scrolled past that
2 seconds, will try that now
same issue, deleted cache and cookies
only thing i get back as some type of error
Are you using monorepo?
yes
was waiting for this question tbf
package.json if you need it
Make sure all packages have the same version of Drizzle Kit
And reinstall
node_modules
triple checked already, every other package is as peer dependency, and they are all up to date
also done that
Are you using
bun
?yes
Can you check version of drizzle-kit in
bun.lock
?What command do you use to launch the studio?
or tried all of them
Since Bun does not support
CompressionStream
yet, try using pnpm
or npm
okok
apparently with 1.2.17 they should implement it pretty soon
https://github.com/oven-sh/bun/commit/4465b11b956a0b57d0b8010dd9842a53313253c1
https://github.com/oven-sh/bun/issues/1723 also seems like a lot of people had similar issues, trying to use drizzle
GitHub
Add CompressionStream · Issue #1723 · oven-sh/bun
What is the problem this feature would solve? The compress middleware in Hono depends on CompressStream, which isn't implemented by WebKit. By adding it, it would increase the performance of tr...
yeah, downloaded node again, will be using npx for the current matter until they resolve this weird issue
thanks again @⚡Z.E.U.S⚡
@⚡Z.E.U.S⚡ hi there, different problem, sorry for the @mention in advance, there is a message popping up about a primary key should be defined for the table.
I was trying to update a role for a user, and seems like it cant be done. Didnt want to open a new thread for this message, so i just sent it in here since it is still open


a bit weird this was, never had this issue, and i've been using studio for about a year now
zeus?
Somebody added an issue about this
https://github.com/drizzle-team/drizzle-orm/issues/4673
I am facing the same problem. I would love to debug this. Since I can't find any part of the error message in the drizzle-orm repo I am wondering if the code for drizzle studio is in another repo and a bug there is causing this?
GitHub
[BUG]: drizzle-kit studio: Unable to update or delete rows on table...
Report hasn't been filed before. I have verified that the bug I'm about to report hasn't been filed before. What version of drizzle-orm are you using? 0.40.1 What version of drizzle-kit...
i've seen many people with the same issue, but so far, only @⚡Z.E.U.S⚡ was able to fix it for them, waiting on a response from him, and he will most likely help you too
Any updates?
Not as far as i know
Seems to be resolved, without anything to do on my side.
It would be great to have some insight about how the studio is working. Is it closed source?
If yes, it would still be cool to document somewhere how it works and how to deal with problems. I'm happy to contribute on that part
@rontheline @Laurenz @Sveen Primary key issue should be fixed.
again @⚡Z.E.U.S⚡ with the fixes, thank you so much
I'm facing the same issue, I have properly set primary keys.
drizzle-kit: ^0.31.2
drizzle-orm: ^0.44.2
+1
It would be nice to know more about how drizzle studio is working
Can you try a hard refresh?
Same issue, even tried multiple browsers. I'm using SQLite
I have even downgraded but still same error.
SQLite also should be fixed. Try now.
Yep It's fixed, thank you.