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
could not resolve vue-demi (Nuxt 3 deployment on netlify) #847
Comments
Can you share a minimal reproduction? Thanks. |
Of course, sorry i'm still a beginner. Here is my repo : https://github.com/Joaojack/Nuxt3-x-tailwindcss-app-example |
Here is a more precise view of the error if it can help https://i.imgur.com/KI5dKuZ.png |
I guess this is because Netlify functions do not run the |
hacky fix: @antfu seems like when we build .output/ locally with nitro (which is trim by not sure why it's the case, maybe someone knows more about module system could help. Thanks! |
@didavid61202 your hacky fix worked indeed for me thanks :) |
Hi team,
got this error when trying to deploying (for testing) a Nuxt 3 app with vue-use
4:25:43 PM: > .netlify/functions-internal/server/node_modules/@vueuse/shared/index.mjs:636:14: error: Could not resolve "vue-demi" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time) 4:25:43 PM: 636 │ require("vue-demi").set(...args); 4:25:43 PM: ╵ ~~~~~~~~~~ 4:25:43 PM: .netlify/functions-internal/server/node_modules/vue-demi/package.json:18:17: note: The module "./lib/index.cjs" was not found on the file system 4:25:43 PM: 18 │ "require": "./lib/index.cjs", 4:25:43 PM: ╵ ~~~~~~~~~~~~~~~~~ 4:25:43 PM:
The text was updated successfully, but these errors were encountered: