question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuxt.js created app compilation failed

See original GitHub issue

Bug 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

  1. nvm use 12
  2. npm init keystone-app test
  3. Choose Nuxt.js
  4. Choose Mongoose
  5. Installation happens (yarn not installed, npm installs dependencies)
  6. 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:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
marxvncommented, Dec 8, 2019

try

new NuxtApp({
      srcDir: 'src',
      buildDir: 'dist',
      /*
      ** Build configuration
      */
      build: {
        babel: {
          // envName: server, client, modern
          presets() {
            return [
              [
                '@nuxt/babel-preset-app',
                {
                  useBuiltIns: "entry"
                }
              ]
            ]
          },
        }
      },
    })
2reactions
psychokiller666commented, Nov 22, 2019

I also encountered this problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found