The command "yarn" restores core-js v3.0+
gdlcf88 opened this issue · 2 comments
gdlcf88 commented
I can only use the "node_modules" which is generated by vuepress-creator ads myproject
since the command "yarn" restores core-js v3.0+ (the expected version is v2.6.11).
gdlcf88 commented
zpfz commented
I appreciate the reminder🌹🌹🌹. After debugging, I‘ve found the problem. To reduce the installation time, vuepress-creator does not install vuepress by default when installing antdocs, which causes the core-js version in antdocs to be overwritten by vuepress during yarn install
. For now, I've solved the problem by modifying the template.
Solution
Use the command line vuepress-creator upgrade -t
to update the template at your terminal.