nuxt: Missing core-js modules after upgrading to 2.9.1
Version
Reproduction link
https://github.com/command-tab/nuxt291bug
Steps to reproduce
Upgrade from Nuxt 2.8.1 to Nuxt 2.9.1, npm i, then run npm run dev
What is expected ?
A successful Nuxt build and dev server startup
What is actually happening?
Errors reporting that a bunch of core-js modules are missing. See the README.md in the Reproduction Link for the full error list: https://github.com/command-tab/nuxt291bug/blob/master/README.md
Additional comments?
I have run rm -rf .nuxt node_modules package-lock.json and re-run npm i && npm run dev in my actual project and observed no improvement. As well, I’ve extracted minimal test app which also exhibits the issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20
Yes absolutely ! 😃
nuxt.config.jsCannot reproduce this when using
yarninstead ofnpm, but I can withnpm.Manually installing the corejs runtime resolves the issue:
npm i -D core-js@2 @babel/runtime-corejs2. Its a bit hidden but this is described in the release notes ofv2.6.0I’m able to reproduce the error in nuxt 2.10.0 as well as nuxt-edge 2.10.0-26167690.0f8428fa