Prisma pulse TS error.
I installed prisma pulse extension in a new Next.js project. However, I am trying to set my prisma.ts file
But I am getting error:
Cannot find module '@prisma/extension-pulse' or its corresponding type declarations.ts(2307)Tried clearing npm cache, uninstall and install the dependency, and removing and installing node_modules.
3 Replies
Can you try this solution?
https://www.prisma.io/docs/pulse/getting-started#runtime-specific-imports
Getting started with Prisma Pulse | Prisma Documentation
Learn how to get up and running with Prisma Pulse.
Can confirm that changing the import to import specifically the node version fixed the typescript issue.
I am glad to hear that! 🙏