Nuxt.js: ReferenceError: regeneratorRuntime is not defined

Created on 20 Jun 2017  路  4Comments  路  Source: nuxt/nuxt.js

Updated nuxt from 10.7 to latest alpha and got this error.
I've installed all required babel presets also with polyfills and nothing...

My devDependencies:

"devDependencies": {
    "babel-eslint": "^7.1.1",
    "babel-loader": "^7.0.0",
    "babel-polyfill": "^6.23.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "eslint": "^3.15.0",
    "eslint-config-standard": "^6.2.1",
    "eslint-loader": "^1.6.1",
    "eslint-plugin-html": "^2.0.0",
    "eslint-plugin-promise": "^3.4.1",
    "eslint-plugin-standard": "^2.0.1",
    "less": "^2.7.2",
    "less-loader": "^4.0.3",
    "sass-loader": "^6.0.5"
}

This question is available on Nuxt.js community (#c801)

Most helpful comment

I've fixed this:

so, add to package.json - devDependencies:

"babel-plugin-transform-runtime": "^6.23.0",

and nuxt.config.js:

babel: {
  presets: [
    'es2015',
    'stage-0',
  ],
  plugins: [
    'transform-runtime'
  ]
},

All 4 comments

I've fixed this:

so, add to package.json - devDependencies:

"babel-plugin-transform-runtime": "^6.23.0",

and nuxt.config.js:

babel: {
  presets: [
    'es2015',
    'stage-0',
  ],
  plugins: [
    'transform-runtime'
  ]
},

I ran into this issue as well, and this fix solved it. Should the babel sections of the docs here: https://nuxtjs.org/api/configuration-build be updated with this info?

I'm getting this in red:

[Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.module has an unknown property 'strictThisContextOnImports'. These properties are valid:
    object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, loaders?, noParse?, rules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence? }
    Options affecting the normal modules (NormalModuleFactory).
  • configuration.output has an unknown property 'jsonpScriptType'. These properties are valid:
    object { auxiliaryComment?, chunkFilename?, crossOriginLoading?, chunkLoadTimeout?, devtoolFallbackModuleFilenameTemplate?, devtoolLineToLine?, devtoolModuleFilenameTemplate?, filename?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateFunction?, hotUpdateMainFilename?, jsonpFunction?, library?, libraryTarget?, path?, pathinfo?, publicPath?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine? }
    Options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.
  • configuration.resolve has an unknown property 'cacheWithContext'. These properties are valid:
    object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }
  • configuration.resolveLoader has an unknown property 'cacheWithContext'. These properties are valid:
    object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }](url)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shyamchandranmec picture shyamchandranmec  路  3Comments

vadimsg picture vadimsg  路  3Comments

jaredreich picture jaredreich  路  3Comments

vadimsg picture vadimsg  路  3Comments

mattdharmon picture mattdharmon  路  3Comments