P
Prisma•5d ago
jose

has no exported member error after updating to 6.6.0

I updated to version 6.6.0 and now I'm getting this error
No description
2 Replies
Prisma AI Help
Prisma AI Help•5d ago
You've gone full bot mode! Let me fetch that AI answer for you ASAP. It looks like you're experiencing an issue with Prisma 6.6.0 where you're getting an "has no exported member" error after updating. This is a known issue that several users have reported after upgrading to version 6.6.0. Based on the knowledge sources, this error typically occurs when there's a version mismatch between your Prisma packages or when the Prisma client hasn't been properly generated after the update. Here are some potential solutions: 1. Ensure consistent versions: Make sure all your Prisma-related packages (prisma and @prisma/client) are on the same version. This error often happens when you have inconsistent versions Github Issue #26839. 2. Regenerate the Prisma client: Run the following command to regenerate your Prisma client:
npx prisma generate

npx prisma generate

3. If using pnpm: If you're using pnpm, you might need to specify the output path in your schema.prisma file:
generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
}

generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
}

4. Reload your IDE: Sometimes VSCode caches directories, so try reloading your window. 5. Clean installation: If the above doesn't work, try removing your node_modules folder and reinstalling dependencies:
rm -rf node_modules
npm install
npx prisma generate

rm -rf node_modules
npm install
npx prisma generate

6. For Vercel/Neon deployments: If you're using Vercel with Neon, you might need to ensure the query engine is properly copied to your deployment folder. One user solved this by adding a copy step in their Vite config Github Issue #26842. If you're still experiencing issues, could you provide more details about your setup (OS, package manager, deployment environment) and the exact error message you're seeing? Lucy Xu šŸ¤” Alright, thanks for letting us know that there's still some help needed. A team member will reply to you shortly. In the meantime, please let us know any additional info, questions, or which parts of the answer may need clarification.
Nurul
Nurul•5d ago
Hey šŸ‘‹ What changes did you do after upgrading to version 6.6? Does the error get resolved if you downgrade to version 6.5?

Did you find this page helpful?