Fresh install results in drizzle error on "npm run db:push"

Package subpath './relations' is not defined by "exports" in /home/wsl-tom/git/t3test/node_modules/drizzle-orm/package.json
No description
Solution:
You know what, rm-rf'ing node_modules and then bun install as you suggested seems to have done the job. Not sure why the default NPM install failed across 2 projects - but thanks!...
Jump to solution
7 Replies
Yoers
Yoers6mo ago
Anyone seen this? Seems drizzle is missing an export perhaps Command works fine on prisma for me - shame though I wanted to try drizzle!
Josh
Josh6mo ago
iirc I had this when I had a version mismatch in my mono repo try deleting and reinstalling your node modules, and if you're in a mono repo make sure your drizzle deps are the exact same also make sure you have the right drivers installed for your db for pscale for instance you'll need the mysql2 package
Yoers
Yoers6mo ago
So I did a fresh install via npm create t3-app@latest multiple times with different names, same error each time That would rule out either the monorepo, or node_modules issue right? and do things not initially run locally via sqlite, as is the case with Prisma?
Josh
Josh6mo ago
well, no. still try to manually re install your node modules and use something like pnpm
Yoers
Yoers6mo ago
What do you mean, each fresh project has their own fresh node_modules no, or you're worried the global cache is corrupt?
Solution
Yoers
Yoers6mo ago
You know what, rm-rf'ing node_modules and then bun install as you suggested seems to have done the job. Not sure why the default NPM install failed across 2 projects - but thanks!
miklos
miklos6mo ago
Upgrading drizzle-orm to latest fixed this for me (v0.29.2). I'm using bun.
Want results from more Discord servers?
Add your server
More Posts
need help with customizing error page if auth is failedhey folks I'm using `next-auth` NextJs 14 with app router can anyone tell me how can I customize theVercel has great fonts, but which is it?I'm cloning Vercel's landing page, downloaded Vercel's Geist font pack (Thanks Theo, pretty cool ISetting up a custom sign in page with AuthJs (NextAuth v5)The docs don't really explain how to make a custom sign in page and list providers using authjs, hasUsing next-auth v5 and prisma role based authenticationPlease consider the following `auth.ts` file located in the root of my project. ```ts // auth.ts exDo server actions have a fixed lifetime?I noticed when one of the pages on my site deployed on vercel which uses a number of server actions Google profile picture Next auth T3Does anyone know how to get Google profile picture when user singIn ? i'm using T3/Next-authOpen id view content from Tanstack Table with Tanstack RouterAnyone has any tip how I can render a new view in the current page of a selected item ? So im using How to add queryClientConfig to createTRPCNext in t-3 App routerHi everyone, I am trying to add a default option for tRPC mutations to: "useErrorBoundary: true". IAdding custom value to NextAuth session - [next-auth][error][JWT_SESSION_ERROR]I am trying to add a username field to my NextAuth session data in my t3 app and am getting the follWhat are the files in the /trpc folder used for in T3 App Router?I'm trying out the new create-t3-app with app router and am confused on the purpose of the /trpc fol