修改Vue版本号,必须3.3.2以上 安装element-plus,重新npm install i --force,强制安装,否则会报错 element-plus找不到样式 在main.js中,找到引入element-plus样式 解决也很简单,既然自己已经安装了element-plus依赖,却找不到文件,大概率是路径变了。于是手动翻了下node-modules,发现果然整个theme-chalk文件夹都被挪...
1.前言 最近在搞着vue3,顺便也看下最新的Elementui Plus,遇到一些问题记录如下 2. 安装运行 直接报错 报错:Can‘t import the named export ‘xxx‘ from non EcmaScript module (only default export is available) 1.png 3. 解决方案 vue.config.js 配置 configureWebpack:{module:{rules:[{test:/\.mjs...
还有一种可能是修改element-plus的版本或者修改unplugin-auto-import和unplugin-vue-components两个插件的版本: 在使用webpack 运行vue3 elmentui 的时候报错Error: Cannot find module 'node:module' 在加入vue3 elmentui plus 这行代码的时候 出现了报错 最后发现问题是 elment plus 和 自动加载方法 的版本不适应...
首先排查看错误是/@modules/lodash/XXX.js这个引入的错误,也就是引入了lodash的错误,检查一下lodash这个依赖是否安装成功。 第一个方案: 安装lodash,依然报错 所以可能安装了lodash也没有效果 所以我uninstall element-plus 重新install element-plus 好了,原因可能是我一开始用vite构建项目的时候,install element-plus...
也可以直接配置babel.config.js,但是如果安装版本过高可能在配置时会报错,所以安装指定版本 npm i element-plus@1.0.2-beta.28 1 module.exports = { plugins: [ [ 'import', { libraryName: 'element-plus', customStyleName: (name) => { return `element-plus/lib/theme-chalk/${name}.css` ...
报错内容: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Uncaught (in promise) TypeError: Cannot read properties
使用Vue3.0+TS搭建项目的时候,把ElementUI加进来,用 vue add element-plus命令后,遇到报错: ERROR in src/plugins/element.ts:5:17 TS7006: Parameter 'app' implicitly has an 'any' type. …
Vue3+Element-plus 报错记录 报错信息 TypeError: Cannot read properties of null (reading 'parentNode') TypeError: Cannot read properties of null (reading 'exposed') 错误场景还原 后台管理页面,点击A页面以后再去点击其他页面就会出现这两个报错,如果直接点击其他页面一切正常,因此排查重点放在A页面上。