Error when trying to setup Drizzle ORM
Hello people!
I'm trying to following the original BETH Stack tutorial in order to get the basics, but I'm aware a lot changed in the tech used since then, so I'm trying to adapt my code as I go and encounter errors.
However, I'm unable to solve an error when running
bunx drizzle-kit push:sqlite
.
The error is this one: https://paste.tchncs.de/upload/falcon-seal-lizard
This is my schema.ts
: https://paste.tchncs.de/upload/fish-ant-turtle
And this is my drizzle.config.ts
: https://paste.tchncs.de/upload/emu-bison-raven
Please let me know if any of you can help.1 Reply
Hi, I can't see the link you provided but I also had a problem with drizzle-kit push. Changing db:push in package.json to this solved for me:
"db:push": "bun --env-file=.env drizzle-kit push:sqlite",