element-plus / vue-cli-plugin-element-plus

Element Plus plugin for @vue/cli 4.5
MIT License
126 stars 16 forks source link

vue add element-plus commond throw an error #21

Open code1379 opened 3 years ago

code1379 commented 3 years ago

ERROR TypeError: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined at D:\testProject\element-demo\node_modules\vue-cli-plugin-element-plus\generator\index.js:45:45 at runGenerator (C:\Users\xxx\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:132:13) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async invoke (C:\Users\xxx\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:92:3)

Window 10 platform has this problem, Mac OS is fine

ghost commented 3 years ago

i get a same error system is centos 7.9

ghost commented 3 years ago

ERROR TypeError: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined at /www/wwwroot/aip.chinaydfx.com/node_modules/vue-cli-plugin-element-plus/generator/index.js:45:45 at runGenerator (/opt/nvm/versions/node/v14.17.4/lib/node_modules/@vue/cli/lib/invoke.js:132:13) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async invoke (/opt/nvm/versions/node/v14.17.4/lib/node_modules/@vue/cli/lib/invoke.js:92:3)

ghost commented 3 years ago

@code1379 use ESLint with error prevention only

ghost commented 3 years ago

i tested options, found result: ESLint + Prettier --> Error ESLint with error prevention only --> Success other not tested

MinWest commented 2 years ago

i get a same error

vue -V @vue/cli 4.5.15

node -v v16.13.1

npm -v 8.3.0

YunYouJun commented 2 years ago

Sorry, I think this plug-in may no longer be maintained. Considering that element has been updated a lot, you can take a look at this https://github.com/element-plus/unplugin-element-plus/ .