Not compatible with core-js@3 dependency
See original GitHub issue- I confirm that this is an issue rather than a question.
Bug report
Version
"vuepress": "^1.0.0-alpha.47",
"core-js": "3.0.1"
Steps to reproduce
yarn add vuepress@next core-js
- edit
babel.config.js
presets: [
[
'@vue/app',
{
useBuiltIns: 'entry',
corejs: 3,
},
],
],
What is expected?
The project is running.
What is actually happening?
Running error:
If use core-js@2.6.5
, this docs dev can run, but conflicts with the vue project dependencies core-js@3.0.1
. How can I fix it?
Other relevant information
- Your OS: Win 10
- Node.js version: v10.15.3
- Browser version: Chrome 73.0.3683.86
- Is this a global or local install? >local
- Which package manager did you use for the install? >yarn
- Does this issue occur when all plugins are disabled?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:8
Top Results From Across the Web
react native - How to update core-js to core-js@3 dependency?
You update core-js with the following command: npm install --save core-js@^3. If you read the React Docs you will find that the command...
Read more >babel/polyfill
Babel includes a polyfill that includes a custom regenerator runtime and core-js. This will emulate a full ES2015+ environment (no < Stage 4...
Read more >How to update core-js to core-js@3 dependency - Ask Ubuntu
You can update core-js by running this command: npm install --save core-js@^3.
Read more >Npm install is failing while running redash [macOSX]
Upgrade to chokidar 3 with 15x less dependencies. npm WARN ... core-js@<3 is no longer maintained and not recommended for usage due to...
Read more >babel-plugin-polyfill-corejs3 - npm
babel-plugin-polyfill-corejs3. 0.6.0 • Public • Published 3 months ago. Readme · Code Beta · 2 Dependencies · 269 Dependents · 32 Versions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
temporary fix works fine for me: npm i @vue/babel-preset-app@next
+1
when use vuepress with @babel/preset-env@7.4.x (which requires core-js@3), and when core-js under node_modules directly resolves to 3, it will cause vuepress build errors like below.