nuxt: core-js problems with 2.5.0
Version
Reproduction link
Steps to reproduce
Do the fresh install of the Nuxt(via cli) with the following options:
- Project name project
- Project description Cool project
- Use a custom server framework none
- Choose features to install Axios
- Use a custom UI framework element-ui
- Use a custom test framework none
- Choose rendering mode Universal
- Author name Andrew Gorpenko
- Choose a package manager npm
After running the npm run dev I am getting the error:
ERROR Failed to compile with 3 errors
These dependencies were not found:
* core-js/library/fn/object/assign in ./node_modules/babel-runtime/core-js/object/assign.js
* core-js/library/fn/symbol in ./node_modules/babel-runtime/core-js/symbol.js
* core-js/library/fn/symbol/iterator in ./node_modules/babel-runtime/core-js/symbol/iterator.js
What is expected ?
Clean install without errors
What is actually happening?
Fails to compile because of missing dependencies
<div align="right">This bug report is available on Nuxt community (#c8883)</div>About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 20 (5 by maintainers)
Commits related to this issue
- fix: core-jsのエラーの為に依存関係に追加 下記のリンクと同じ現象が発生した https://github.com/nuxt/nuxt.js/issues/5313 vuetifyの問題かな? とりあえず解決済み — committed to calmato/gran by wf-yamaday 4 years ago
For the benefit of people coming here from search engine, this error can trigger depending on what dependencies one has installed and can be fixed by explicitly installing
core-js@2dependency.We are having similar issues with upgrading from 2.4.5 to 2.5.0 when building the BootstrapVue docs:
And getting warning about
core-jsversion not being specified:The only babel file I have is the
.babelrcgenerated by create-nuxt-appSorry if I wasn’t clear before, but I got it working from changing the static class constant to a named const export.
See the before and after in my previous comment, after that change everything is working for me.
@digitalcrafted Do you have a
babel.config.jsor.babelrcfile in your project? Otherwise is there any chance you can share the project with us or giving more details?PS: Cleaning up
yarn.lock/package-lock.jsonmay help.