Closed zacowan closed 4 months ago
Should this be moved to https://github.com/drizzle-team/drizzle-kit-mirror/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc ?
I can't find drizzle-kit source code, is it closed source?
Should this be moved to https://github.com/drizzle-team/drizzle-kit-mirror/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc ?
I can't find drizzle-kit source code, is it closed source?
In hindsight, yeah looks like it. I imagine it's closed source, otherwise that mirror should have the source code. Looks like it's been labelled and assigned here, so I'll hold off on migrating it over 😄
Facing the same issue. It is driving me mad, if drizzle migration works, Typescript fails and vice-versa. This should be fixed with higher priority since Drizzle is labelled as Typescript ORM.
I have a workaround for this.
"db:generate": "NODE_OPTIONS='--import tsx' drizzle-kit generate:sqlite",
Same problem, will try the @giacomorebonato workaround
Having the same issue, Drizzle is not usable with AdonisJS
Nearly 1 year later, still nothing? :(
The fix recommended by @giacomorebonato isn't working for me.
My package.json scripts
"scripts": {
...rest of the scripts,
"db:generate": "NODE_OPTIONS='--import tsx' drizzle-kit generate:pg",
"db:migrate": "tsx src/db/migrator.ts",
"db:studio": "NODE_OPTIONS='--import tsx' drizzle-kit studio --host localhost --port 8100 --verbose"
},
Error
I thought those negative testimonials on your landing page were a joke, but it seems that you actually don't give a flying fuck about maintaining this. Unusable with bun + typescript + sqlite.
I just tried it with the latest drizzle-kit, which is drizzle-kit@0.22.4
, and it worked well. If you still encounter this issue, feel free to open a new one with a full reproduction example
I'm still seeing this issue with drizzle-kit@0.24.1:
➜ flight-director git:(main) ✗ yarn run drizzle-kit generate --config drizzle.config.ts
yarn run v1.22.22
$ /Users/benzittlau/code/parakeeto-core/node_modules/.bin/drizzle-kit generate --config drizzle.config.ts
Reading config file '/Users/benzittlau/code/parakeeto-core/apps/flight-director/drizzle.config.ts'
Error: Cannot find module './src/typings/dateTypes.js'
What version of
drizzle-orm
are you using?0.27.0
What version of
drizzle-kit
are you using?0.19.3
Describe the Bug
drizzle-kit generate:sqlite --schema <schema>
cannot resolve a table import from a file using explicit file extensions.Steps to Reproduce
Steps
users
table already created via a migrationdrizzle-kit generate:sqlite --schema ./src/picture.ts
Schema
TSConfig
Expected behavior
drizzle-kit should resolve the import. When removing the
.js
, the command does not fail (however, TypeScript will then fail to compile the project).Environment & setup
No response