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

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

Fix Bad Regex Causing Error #15

Closed mgreg90 closed 3 years ago

mgreg90 commented 3 years ago

Fixes Cannot read property 'replace' of undefined error.

Regex is not working with app generated with latest version of vue-cli due to use of double quotes.

This fix address this issue

MysteryHS commented 3 years ago

How can I use this change while this is not of the master branch ?

mgreg90 commented 3 years ago

How can I use this change while this is not of the master branch ?

If you change the code in main.ts where it calls mount('#app') to use double quotes instead, it should work.

jw-foss commented 3 years ago

Sorry for the late response :bow: