Vite With Prisma #8477
Unanswered
zwhitchcox
asked this question in
Q&A
Replies: 1 comment
-
Refer the marked answer here: prisma/prisma#20200 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate to vite, but I'm using prisma, and I keep getting the error
|- ReferenceError: exports is not defined
when trying to import the client. I was wondering if anyone had a suggestion to get around this?I know prisma does not output esm, and I haven't been able to get any modules to work with vite unless I compile them with
module: ESNext
, so I'm not sure where to go from here or if I should wait for better documentation/compatibility.Beta Was this translation helpful? Give feedback.
All reactions