-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
build Error:Could not resolve './use-prevent-globalThis' from ./use-prevent-globalThis?commonjs-external #11958
Comments
Nuxt build seems add |
Found out it's caused by Vite & Element Plus. As described in here, Vite does try to convert a word |
closing in favour of nuxt/bridge#204 |
Does that mean, renaming the file in question to anything but "global" might fix the issue? I have the same issue, but with a sass file. |
@nachtfunke Yes, exactly. 👍 |
Environment
Linux
v14.18.0
3-3.0.0-27235989.d52b1e8
Yarn
Vite
meta
,alias
,css
,vite
-
-
Describe the bug
build error
Could not resolve './use-prevent-globalThis' from ./use-prevent-globalThis?commonjs-external
Reproduction
https://github.com/element-plus/element-plus-nuxt-starter
这个项目在我这边build也报同样错误
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: