vue-cli-plugin-element
vue-cli-plugin-element copied to clipboard
vue add element conflits with vue cli
I generated a new project using vue cli and import Element-UI using "vue add element", and error occurred as below:
Running completion hooks...error: Unexpected use of file extension "js" for "./plugins/element.js" (import/extensions) at src\main.ts:5:8:
At the same time, all my router settings failed to be used and App.vue will always be reached no matter what url is input.
求怎么解决的
@wanmu9966 不使用“vue add element”,手动引入。vue add element命令会导致App.vue中的router-view部分被覆盖。