Guidance on migrating to Rust-free from TS?
We have a decently complex Prisma instantiation logic at the moment, but our bundle size is getting absolutely ridiculous at this point, our builds take ages to run and our IDEs are impossible to use so we really need to migrate from the Rust engine ASAP (our builds are failing). When I try to upgrade to the latest Prisma version, and start following the migratio
- How do we handle our instatiation logic? We have a pretty complex setup here, and none of the examples really account for extension usage, typing, etc.
- We use Supabase, and there are no drivers for Supabase at the moment; what should we use here? If I use the pg adapter, I get the following build error:
2 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!I found a related GitHub Issue about the error you are reporting:
https://github.com/prisma/prisma/issues/28096
It seems that the error occurs when Prisma Types are imported from wrong location
GitHub
./node_modules/@prisma/adapter-pg/dist/index.mjs [Client Component ...
Bug description Build Error Module not found: Can't resolve 'dns' ./node_modules/pg/lib/connection-parameters.js (3:13) Module not found: Can't resolve 'dns' 1 | 'use st...