vue-cli-plugin-element icon indicating copy to clipboard operation
vue-cli-plugin-element copied to clipboard

vue add element conflits with vue cli

Open PierreREN opened this issue 4 years ago • 2 comments

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.

PierreREN avatar Apr 07 '20 09:04 PierreREN

求怎么解决的

wanmu9966 avatar Nov 22 '20 12:11 wanmu9966

@wanmu9966 不使用“vue add element”,手动引入。vue add element命令会导致App.vue中的router-view部分被覆盖。

PierreREN avatar Nov 23 '20 12:11 PierreREN