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

I get a error

Open denisding opened this issue 3 years ago • 6 comments

PS D:\Temp\VSCode\0-dimension-dictionary> vue add element-plus
 WARN  There are uncommitted changes in the current repository, it's recommended to commit or stash them first.
? Still proceed? Yes

📦  Installing vue-cli-plugin-element-plus...


added 1 package in 2s

1 package is looking for funding
  run `npm fund` for details
✔  Successfully installed plugin: vue-cli-plugin-element-plus

? How do you want to import Element Plus? Fully import
? Do you want to overwrite the SCSS variables of Element Plus? Yes
? Choose the locale you want to load, the default locale is English (en) zh-cn

🚀  Invoking generator for vue-cli-plugin-element-plus...
📦  Installing additional dependencies...


added 8 packages in 3s

1 package is looking for funding
  run `npm fund` for details
⚓  Running completion hooks...
 ERROR  TypeError: Cannot read property 'replace' of undefined
TypeError: Cannot read property 'replace' of undefined
    at D:\Temp\VSCode\0-dimension-dictionary\node_modules\vue-cli-plugin-element-plus\generator\index.js:45:45
    at runGenerator (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:132:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async invoke (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:92:3)
PS D:\Temp\VSCode\0-dimension-dictionary>

denisding avatar Mar 28 '21 09:03 denisding

+1

duola8789 avatar Apr 19 '21 08:04 duola8789

+1

kid1412621 avatar Jul 20 '21 03:07 kid1412621

+1

przemekk1385 avatar Jul 24 '21 10:07 przemekk1385

+1 三月份的问题到现在都没解决过的吗。。。

dskin avatar Jul 26 '21 06:07 dskin

+1 this is a typescript issue (see #18 to see what happens if you ignore this issue and run the project). I guess this plugin doesn't support typescript, not sure if it ever will

lorenzo-dallamuta avatar Aug 06 '21 15:08 lorenzo-dallamuta

This issue is already mentioned here. If using Vue CLI, possible workaround is to go through "Manually select features" when creating vue project and then either unselect Linter / formatter, otherwise keep it selected but in the next step of installation select ESlint with error prevention only. Seems that other installation options have no effect on this error and thus may be used at discretion.

patrpok avatar Aug 16 '21 10:08 patrpok