element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
289 stars 82 forks source link

build报错 #13

Closed hzm18 closed 2 years ago

hzm18 commented 2 years ago

执行命令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. `

YunYouJun commented 2 years ago

可复现,是已知的 Nuxt3 Bug,等待修复。

hd996 commented 2 years ago

+1

hd996 commented 2 years ago

@YunYouJun Nuxt3有相关issue嘛?

YunYouJun commented 2 years ago

See here. https://github.com/nuxt/nuxt.js/issues/11958

hd996 commented 2 years ago

@YunYouJun thx!

YunYouJun commented 2 years ago

Now, it works by upgrade nuxt3!