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

vue add element-plus commond throw an error

Open code1379 opened this issue 4 years ago • 6 comments
trafficstars

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

code1379 avatar Aug 07 '21 05:08 code1379

i get a same error system is centos 7.9

gamecss avatar Aug 10 '21 09:08 gamecss

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)

gamecss avatar Aug 10 '21 09:08 gamecss

@code1379 use ESLint with error prevention only

gamecss avatar Aug 11 '21 06:08 gamecss

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

gamecss avatar Aug 11 '21 06:08 gamecss

i get a same error

vue -V @vue/cli 4.5.15

node -v v16.13.1

npm -v 8.3.0

MinWest avatar Dec 21 '21 09:12 MinWest

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/ .

YunYouJun avatar Dec 23 '21 07:12 YunYouJun