build报错
hzm18 opened this issue · 6 comments
执行命令yarn build
报错:
yarn版本:1.22.10
node版本:16.11.1
npm版本:8.1.0
系统:archlinux
`
ERROR Could not resolve './use-prevent-globalThis' from ./use-prevent-globalThis?commonjs-external 21:02:42
ERROR Could not resolve './use-prevent-globalThis' from ./use-prevent-globalThis?commonjs-external 21:02:42
at error (node_modules/rollup/dist/shared/rollup.js:158:30)
at ModuleLoader.handleResolveId (node_modules/rollup/dist/shared/rollup.js:22263:24)
at node_modules/rollup/dist/shared/rollup.js:22257:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`
可复现,是已知的 Nuxt3 Bug,等待修复。
+1
@YunYouJun Nuxt3有相关issue嘛?
See here. nuxt/nuxt#11958
@YunYouJun thx!
Now, it works by upgrade nuxt3!