drizzle-team / drizzle-team/drizzle-orm
[BUG]:Unable to run drizzle studio via Deno
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [X] 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.38.2
### What version of `drizzle-kit` are you using?
0.30.1
### Other packages
deno@2.1.4
### Describe the Bug
I was able to run drizzle commands such as `migrate`, `push` through npx as such `deno -A --node-modules-dir npm:drizzle-kit push` (though I would much prefer run natively via Deno). The drizzle studio was able to launch after I ran `deno -A --node-modules-dir npm:drizzle-kit studio`, however it returned the following
```Task db deno -A --node-modules-dir npm:drizzle-kit "studio"
No config path provided, using default 'drizzle.config.ts'
Reading config file '.../back-end/drizzle.config.ts'
Failed to find Response internal state key
Using 'pg' driver for database querying
Drizzle Studio is up and running on https://local.drizzle.studio
Terminating Deno.serve loop due to unexpected error TypeError: Cannot read properties of undefined (reading 'status')
at mapped (ext:deno_http/00_serve.ts:428:26)
at eventLoopTick (ext:core/01_core.js:175:7)
```
And the studio no longer works since the server is terminated. I am able to run studio via `npx`, but that would require me to drop all code related to Deno eg. `Deno.env.get("DATABASE_URL")`
Contributor guide
Assessment
This issue has not been assessed yet.