Nuxt.js created app compilation failed
See original GitHub issueBug report
Describe the bug
When using the app generator for Nuxt.js, client side compilation fails with error :
` ERROR Failed to compile with 5 errors friendly-errors 07:37:07
These dependencies were not found: friendly-errors 07:37:07 friendly-errors 07:37:07
- core-js/modules/es6.regexp.to-string in ./dist/utils.js, ./dist/components/nuxt.js friendly-errors 07:37:07
- core-js/modules/es7.promise.finally in ./dist/client.js friendly-errors 07:37:07
- core-js/modules/es7.symbol.async-iterator in ./dist/client.js, ./dist/components/nuxt-link.client.js friendly-errors 07:37:07 friendly-errors 07:37:07 To install them, you can run: npm install --save core-js/modules/es6.regexp.to-string core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator friendly-errors 07:37:07 `
To Reproduce
- nvm use 12
- npm init keystone-app test
- Choose Nuxt.js
- Choose Mongoose
- Installation happens (yarn not installed, npm installs dependencies)
- Start app with cd test & npm run dev
Expected behaviour
App should compile and start.
Workaround found in https://github.com/vuejs/vue-cli/issues/4391 by forcing core-js to version 2.x
npm install --save core-js@2
npm run dev
System information
- OS: Linux
Additional context
- nvm : Now using node v12.13.0 (npm v6.12.0)
- yarn not installed
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:12 (5 by maintainers)
Top Results From Across the Web
NodeJS fails to compile for NuxtJS app - Build debugging
Previously working application suddenly stopped deploying successfully. Looks like some sort of SSL/cryptography related library that fails ...
Read more >Nuxt.js failed to dynamically compile templates
I use SSR. I think nuxt.js failed to dynamically compile templates After goggling I found this: ...
Read more >Plugins directory
The plugins directory contains your Javascript plugins that you want to run before instantiating the root Vue.js Application.
Read more >Installation
To get started quickly, you can use create-nuxt-app . Make sure you have installed yarn, npx (included by default with npm v5.2+) or...
Read more >The build Property
Info: you can use the command yarn nuxt build --analyze or yarn nuxt build -a to build your application and launch the bundle...
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
try
I also encountered this problem.