Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: regeneratorRuntime is not defined #934

Closed
lukasborawski opened this issue Jun 20, 2017 · 4 comments
Closed

ReferenceError: regeneratorRuntime is not defined #934

lukasborawski opened this issue Jun 20, 2017 · 4 comments

Comments

@lukasborawski
Copy link

@lukasborawski lukasborawski commented Jun 20, 2017

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)
@lukasborawski lukasborawski changed the title nuxt.js ReferenceError: regeneratorRuntime is not defined ReferenceError: regeneratorRuntime is not defined Jun 20, 2017
@lukasborawski

This comment has been minimized.

Copy link
Author

@lukasborawski lukasborawski commented Jun 20, 2017

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'
  ]
},
@danii-nebot

This comment has been minimized.

Copy link

@danii-nebot danii-nebot commented Jun 28, 2017

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?

@techsin

This comment has been minimized.

Copy link

@techsin techsin commented Mar 27, 2018

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)
rzueger added a commit to odch/flightbox that referenced this issue Mar 31, 2018
- `babel-core/register` needs to be replaced with compiler
  'js:babel-core/register' as of gulp-mocha 4.0.0
  (see https://github.com/sindresorhus/gulp-mocha/releases/tag/v4.0.0)
- Babel plugin "transform-runtime" required so that the file
  `src/util/createChannel.js` can be compiled again.
  Without the plugin, the following error is thrown:
  "ReferenceError: regeneratorRuntime is not defined"
  Solution found here: nuxt/nuxt.js#934
@lock

This comment has been minimized.

Copy link

@lock lock bot commented Nov 4, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.