js模板似乎配置依赖的版本有问题
错误'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)
这个是依赖包的问题吗? 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!
暂时可以先固定依赖,然后再运行,后续更新
使用 npm i --legacy-peer-deps 命令可以解决
使用了npm i --legacy-peer-deps 运行起来是这样Not available in legacy mode