zpfz / vuepress-creator

A lightweight creator for VuePress project.

Home Page:https://zpfz.github.io/vuepress-creator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The command "yarn" restores core-js v3.0+

gdlcf88 opened this issue · comments

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

commented

image
yarn add core-js@2 makes it work, but this problem should still be solved.

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.