Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gdlcf88 opened this issue Aug 15, 2020 · 2 comments
Closed

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

gdlcf88 opened this issue Aug 15, 2020 · 2 comments

Comments

@gdlcf88
Copy link

gdlcf88 commented Aug 15, 2020

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 gdlcf88 changed the title The command "yarn" restores v3.0+ of core-js The command "yarn" restores core-js v3.0+ Aug 15, 2020
@gdlcf88
Copy link
Author

gdlcf88 commented Aug 16, 2020

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

@zpfz
Copy link
Owner

zpfz commented Aug 16, 2020

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.

@zpfz zpfz closed this as completed Aug 16, 2020
@zpfz zpfz pinned this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants