-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt/Prisma conflict with Nuxt/UI #64
Comments
Same issue here |
This has become a huge issue - its not just a conflict with Nuxt/UI, but several other packages like nuxt-concierge. This really needs to be fixed! It seems like deleting the .nuxt directory and then doing a build works the first time, but if there is a .nuxt directory then it always fails with this error. |
Even an empy .nuxt directory doesn't resolve it, the entire .nuxt directory has to be removed. |
Related to #12 Deleting node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d.ts temporarily solves it, but it's not a long term solution. @ankur-arch - can this be prioritized? It is a huge annoyance. |
Of course, deleting prisma.d.ts means you lose types and IDE autocomplete... :-( |
Got the same issue. Any idea, how to work-arround it? Maybe by configuring rollup to skip the problematic file? |
Could you folks see if this version works for you? Thanks, @gsxdsm! It’s been two weeks of hectic planning, so I’ve been incredibly busy. I really appreciate all your insights and completely understand the frustration. I’ll make room and prioritize this next week! |
@ankur-arch the fix works for me. I change dependencies in package.json from Thanks a lot for the VERRRY quick response/help! Lars |
Works for me after downgrading from |
Thanks so much @ankur-arch ! Testing today and will report back but looks promising. |
Hi @gsxdsm, let me know if the Rollup error is being addressed. I’ll push an update once it’s resolved—it definitely seems like a regression. |
Yes seems to be resolved thank you! |
does this still work only with |
Same issue here with @sidebase/nuxt-auth |
Hi @andreakru and @ThomasBerne , I'm trying to identify the regression and have a pre-release version Can you see if the provided version works, then I'll merge it in. |
It seems to works fine for me. |
fix(#64): avoid importing server files
🎉 This issue has been resolved in version 0.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for your patience everyone, I've merged it in 🥳 , and this issue should be fixed in the latest version v |
Environment
Version
2.19.1
Reproduction
init lastest nuxt 3
add nuxt prisma module
add nuxt ui module
` ERROR RollupError: node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d.ts (2:8): Expected ';', '}' or (Note that you need plugins to import files that are not JavaScript) nitro 21:27:12
1: import { PrismaClient } from "@prisma/client";
2: declare const prismaClientSingleton: () => PrismaClient<import(".prisma/client").Prisma.PrismaClientOptions, never, i...
^
3: declare const prisma: PrismaClient<import(".prisma/client").Prisma.PrismaClientOptions, never, import("@prisma/client...
4: export type CustomPrismaClient = ReturnType;`
Description
when remove
'@nuxt/ui'
from modules: [''] in nuxt.config.ts it's work can use npm run devbut if add
'@nuxt/ui'
it''s error` ERROR RollupError: node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d.ts (2:8): Expected ';', '}' or (Note that you need plugins to import files that are not JavaScript) nitro 21:27:12
1: import { PrismaClient } from "@prisma/client";
2: declare const prismaClientSingleton: () => PrismaClient<import(".prisma/client").Prisma.PrismaClientOptions, never, i...
^
3: declare const prisma: PrismaClient<import(".prisma/client").Prisma.PrismaClientOptions, never, import("@prisma/client...
4: export type CustomPrismaClient = ReturnType;`
The text was updated successfully, but these errors were encountered: