-
-
Notifications
You must be signed in to change notification settings - Fork 30
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 './globalThis.js' #204
Comments
Did you maybe find a solution for this? I am facing the exact same issue, but with |
Should anyone stumble upon the same issue, just renaming the files in question actually will help to circumvent this specific issue. |
Getting a similar error when running Using node 14 and npm 6
I don't have Elemen Plus installed, not sure what to do. |
This is probably an insane solution, but I managed to get build to work by following this steps:
vite: {
resolve: {
alias: {
"../util/globalThis": "./dirty-hack.js",
},
},
}, (in my case, unlike OP's, the problematic import was
// Trying to bypass showstopper bug that prevents builds
// See issue status: nuxt/bridge#204 After those steps building the app should be possible UPDATE After applying the fix above, a regular build now works, but I'm getting a different error if I use the
Would really appreciate any advancement on this. |
this bug cause by this line https://github.com/nuxt/framework/blob/bf716f39783508e001a590c01956ac57937f6bd2/packages/vite/src/client.ts#L21
when file path has some variable in Reproduction project: https://codesandbox.io/s/charming-darkness-fdvg9?file=/app.vue |
Environment
Darwin
v16.13.0
3.0.0-27267816.6bd7186
yarn@1.22.17
Vite
buildModules
,build
-
nuxt-windicss@2.0.11
Describe the bug
yarn build
Reproduction
https://github.com/productdevbook/productdevbook.com
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: