Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

vue add element-plus commond throw an error #21

Open
code1379 opened this issue Aug 7, 2021 · 6 comments · May be fixed by #22
Open

vue add element-plus commond throw an error #21

code1379 opened this issue Aug 7, 2021 · 6 comments · May be fixed by #22

Comments

@code1379
Copy link

code1379 commented Aug 7, 2021

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
Copy link

ghost commented Aug 10, 2021

i get a same error
system is centos 7.9

@ghost
Copy link

ghost commented Aug 10, 2021

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
Copy link

ghost commented Aug 11, 2021

@code1379
use ESLint with error prevention only

@ghost
Copy link

ghost commented Aug 11, 2021

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

wenfangdu added a commit to wenfangdu/vue-cli-plugin-element-plus that referenced this issue Aug 18, 2021
@wenfangdu wenfangdu linked a pull request Aug 18, 2021 that will close this issue
wenfangdu added a commit to wenfangdu/vue-cli-plugin-element-plus that referenced this issue Aug 18, 2021
@MinWest
Copy link

MinWest commented Dec 21, 2021

i get a same error

vue -V
@vue/cli 4.5.15

node -v
v16.13.1

npm -v
8.3.0

@YunYouJun
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants