vue-admin-box-template icon indicating copy to clipboard operation
vue-admin-box-template copied to clipboard

js模板似乎配置依赖的版本有问题

Open huhuime opened this issue 4 years ago • 4 comments

错误'createElementBlock' is not exported by node_modules\vue\dist\vue.runtime.esm-bundler.js, imported by src\layout\Menu\MenuItem.vue 搜索了下,似乎是需要更新才行(https://github.com/element-plus/element-plus/issues/2907)

huhuime avatar Oct 08 '21 09:10 huhuime

这个是依赖包的问题吗? npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/vite npm ERR! dev vite@"2.3.7" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vite@"^2.5.10" from @vitejs/[email protected] npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@"^1.2.2" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR!

sunrong1 avatar Nov 22 '21 15:11 sunrong1

暂时可以先固定依赖,然后再运行,后续更新

cmdparkour avatar Jan 05 '22 08:01 cmdparkour

使用 npm i --legacy-peer-deps 命令可以解决

huapc avatar May 28 '22 08:05 huapc

使用了npm i --legacy-peer-deps 运行起来是这样Not available in legacy mode

ajdbvivian avatar Aug 16 '22 02:08 ajdbvivian