-
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
Compatibility with Nuxt 4 #20
Comments
I see that the above problem is probably related to #15 - I using pnpm and in addition it is working with monorepo and nuxt layers... will test it a bit more but I also get an "ERROR ✘ Failed to install Prisma Client." error and everything crashes |
Hi @husayt! Not sure if this helps, but I know that |
Thank you, but I don't use npm, so I don't have package.lock
…On Sun, Aug 4, 2024 at 9:35 PM Connor van Spronssen < ***@***.\*\*\*> wrote:
Hi @husayt !
Not sure if this helps, but I know that npm gets used over other package
managers if there are multiple lockfiles. This might be what is happening
here, but I'm missing some information. If you happen to have both a
package-lock.json and a pnpm-lock.yaml, does the issue still occur after
deleting the package-lock.json?
—
Reply to this email directly, view it on GitHub
,
or unsubscribe
.
You are receiving this because you were mentioned.Message ID:
***@***.\*\*\*>
|
My goodness, that's a quick response 🙂. |
I will try to come up with repro, but in case if someone came across this will be good to hear from them |
Ah, I think I see what is happening now. Here's the relevant code for the issue: function detectPackageManager(): PackageManager {
// Check for package-lock.json
if (existsSync("package-lock.json")) {
return "npm";
}
// Check for yarn.lock
if (existsSync("yarn.lock")) {
return "yarn";
}
// Check for pnpm-lock.yaml
if (existsSync("pnpm-lock.yaml")) {
return "pnpm";
}
// bun.lockb
if (existsSync("bun.lockb")) {
return "bun";
}
// Default to npm if none of the above are found
return "npm";
} I see two things happening here:
I will check if I can create a minimal reproduction, and link a repo containing said reproduction. |
I've managed to reproduce the issue in Nuxt 3. I'll create a new issue, since it doesn't appear to be a Nuxt 4 issue |
I am testing the module with Nuxt 4 but I got an error. Is there any specific branch I have to use? Error when running ✘ [ERROR] Could not resolve ".prisma/client/index-browser"
You can mark the path ".prisma/client/index-browser" as external to exclude it from the bundle, ERROR [unhandledRejection] Build failed with 1 error: 12:18:17 PM node_modules/.pnpm/@prisma+client@5.22.0_prisma@6.0.1/node_modules/@prisma/client/index-browser.js:1:23: ERROR: Could not resolve ".prisma/client/index-browser" |
Nuxt 4(or running in compatibility mode) has a new application structure - unfortunately, at the moment the module does not support the new structure and it is not possible to run the application with the module active.
The text was updated successfully, but these errors were encountered: