Skip to content
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/ui conflict with nuxt/prisma #2813

Closed
DT-Zilo opened this issue Nov 30, 2024 · 3 comments
Closed

nuxt/ui conflict with nuxt/prisma #2813

DT-Zilo opened this issue Nov 30, 2024 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@DT-Zilo
Copy link

DT-Zilo commented Nov 30, 2024

Environment

  • OS : Windows 11
  • Node : 20.14.0
  • Nuxt: lastest
  • Nuxt prisma : lastest

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 dev
but 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;`

Additional context

No response

Logs

@DT-Zilo DT-Zilo added bug Something isn't working triage labels Nov 30, 2024
@gsxdsm
Copy link

gsxdsm commented Dec 1, 2024

Facing same issue

@fb-sean
Copy link

fb-sean commented Dec 2, 2024

same issue here fresh created project with nuxt ui and prisma/nuxt

Copy link
Member

Duplicate prisma/nuxt-prisma#64.

@benjamincanac benjamincanac added duplicate This issue or pull request already exists and removed triage labels Dec 4, 2024 — with Volta.net
@benjamincanac benjamincanac closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants