Open jeffreybos opened 4 months ago
Hi @jeffreybos 👋🏻 Thanks for raising this. With your NextJS app, are you attempting to use Prisma Pulse in an edge function or serverless function?
I'm using it with supabase. I followed the prisms pulse guide for setting up my project.
But the issue right now is that the installed pulse npm package is not recognized as a module
I have just encountered the same issue currently. I am also using supabase.
I have the same issue
I am using postgresql on railway
Hey folks!
Can you please confirm that you have set customConditions
in your "tsconfig.json" file as specified here?
Hi, i have the same issue, @jeffreybos did you find a solution ? I using Supabase aswell
@ThomasBnf To confirm, you have set customConditions in your "tsconfig.json" file as mentioned here and are still getting the issue, right?
yes, exactly, i tried with "customConditions":["workerd"] or ["node"]
Thanks for confirming. Our team has take a note of this and will get back with further updates.
I have the exact same issue.
I also encountered this. NextJS app with Postgresql.
@nurul3101 Are there any updates for a fix to this?
Actually, I was able to figure what was going wrong in my case. The file that was importing the Pulse-extension was being included in some client-side code. Since the package's exports specify "node" and "workerd" environments, nothing was obviously being exported for the browser. I'll fix it in my repo.
Thanks anyway.
@ThomasBnf is your case by any chance similar to @jkumara, where the exports are not working for the browser?
We released a new Prisma Pulse extension version 1.2.0
: https://www.npmjs.com/package/@prisma/extension-pulse
It's now possible to import from @prisma/extension-pulse/node
or @prisma/extension-pulse/workerd
as an alternative to using the customConditions
setting in tsconfig.
If you are running into this issue, please try importing either from @prisma/extension-pulse/node
or @prisma/extension-pulse/workerd
depending on your runtime.
Bug description
I want to use Prisma Pulse, but when i import (and ofcourse i installed the package with NPM) the package. I get the following error.
./lib/db.ts:2:0 Module not found: Package path . is not exported from package /node_modules/@prisma/extension-pulse (see exports field in /node_modules/@prisma/extension-pulse/package.json)
I've checked the node_modules and @prisma/extension-pulse is in there
I'm. using NextJS 14.1.4 and Prisma 5.13.0 and @prisma/extension-pulse 1.0.2
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
NextJS 14.1.4
Prisma Version
Prisma 5.13.0 Pulse 1.0.2