-
Notifications
You must be signed in to change notification settings - Fork 16
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
rollup error #12
Comments
I can run it, but I cannot build it |
[error] Cannot find module '/drone/src/node_modules/vite/node_modules/rollup/parseAst' imported from /drone/src/node_modules/vite/dist/node/index.js |
I'm also getting this error and I found that it's happening only when I also use the Are you also using this module? @1034935767 @bbhxwl |
Indeed, I also have this module because I used @ nuxt/ui pro, which includes these. |
But there is no problem with the operation, only a compilation error. |
I think it doesn't matter with other modules. Just should not import |
Well spotted but how can we force it not to export { default as prismaD } from '../../node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d'; |
Do you have a solution? |
I find it interesting that the application does work for you when running the dev server but compilation fails because in my project neither of those work @bbhxwl |
Well, yes, it's strange that it can't be officially used, it can only be tested. |
I experience the same error message as OP. In a basically empty new project. In my case there is also this behavior where the build fails but the code runs, meaning for example that it did the migrations into my postgresql db. My package.json is the following: {
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev --dotenv .env.local",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"type-check": "npx nuxi typecheck",
"lint": "eslint .",
"start": "node .output/server/index.mjs"
},
"dependencies": {
"@nuxt/eslint": "^0.3.13",
"@nuxt/ui": "^2.17.0",
"@nuxtjs/i18n": "^8.3.1",
"@prisma/nuxt": "^0.0.30",
"@sidebase/nuxt-auth": "^0.7.2",
"nuxt": "^3.12.2"
},
"devDependencies": {
"@prisma/client": "^5.16.1",
"prisma": "^5.16.1",
"typescript": "^5.5.2",
"vue-tsc": "^2.0.22"
}
} I would love to run nuxt-prisma, it is by far the best solution for nuxt and postgresql. |
I also really want to use it, but unfortunately, let's wait for more people to discover this issue. |
I'm facing a similar issue, when adding ONLY the
Code compilation fails but some how the Nuxt development server runs, I guess it silently fails. I've tried removing It seems like the So far I don't have any other clue on what's causing this. Here is my {
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@prisma/nuxt": "^0.0.30",
"@sidebase/nuxt-auth": "^0.8.0",
"nuxt": "^3.12.3",
"vue": "latest"
},
"devDependencies": {
"@prisma/client": "^5.16.1",
"prisma": "^5.16.1"
}
} |
I don't understand what's causing this problem, but I noticed in the source code that there's a comment that mentions automatically import the utils directory, but it's implemented as scaning directory. So I made a change here and miraculously it no longer prompts the prisma.d.ts exception on my own computer. |
This is interesting. I'm not very familiar with Nitro config, but it seems like |
i get same error . |
For anyone encountering this issue, a temporary workaround is to modify the file We'll need to see if @ElliottZhao pull request gets approved for a more permanent fix. |
I hope to fix it as soon as possible. I don't know how to use it yet. |
this should be fixed asap the module is unusable |
We are definitely looking into this and will review @ElliottZhao 's PR as soon as possible. Thanks for your patience 🙏 |
@ElliottZhao's PR has been merged and released in version |
Closing this, as it should be fixed as of version |
500 |
@bbhxwl that sounds unrelated and would need a new issue. However, it's most likely due to your
|
🎉 This issue has been resolved in version 0.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
error is still there in 0.1.2:
$ cat package.json
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@prisma/nuxt": "^0.1.2",
"nuxt": "^3.14.1592",
"nuxt-auth-utils": "^0.5.5",
"nuxt-authorization": "^0.3.2",
"vue": "latest",
"vue-router": "latest",
"vuetify-nuxt-module": "^0.18.3"
},
"devDependencies": {
"@prisma/client": "^6.0.0",
"prisma": "^6.0.0"
}
} |
This issue is still here. Delete (or emptying out) prisma.d.ts in nuxt/dist/runtime/server/utils solves it and doesn't seem to have any negative side effects. But it's not a long term solve. This is HUGELY annoying and making me consider going to Drizzle. Can this be prioritized? |
I got this error, I know auto import by
.nuxt\types\nitro-imports.d.ts
const prismaD: typeof import('../../node_modules/.pnpm/@prisma+nuxt@0.0.30_nuxt@3.12.1_@opentelemetry+api@1.9.0_@parcel+watcher@2.4.1_@types+node@20_rappjaaf4divnx3cq7ck24zofu/node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d')['default']
.Maybe should not do this
addServerScanDir(createResolver(import.meta.url).resolve("./runtime/server"));
atmodule.ts
.=========================================
============================================
The text was updated successfully, but these errors were encountered: