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.

Unknown option: .reactRuntime

See original GitHub issue

Description

Running gatsby develop results in 2 errors stating: “Unknown option: .reactRuntime”

It might be something to do with images, as I noticed the errors crop up just after the console statement: “Generating image thumbnails”…

success createPages - 16.044s
success Checking for changed pages - 0.002s
success createPagesStatefully - 0.102s
success update schema - 0.116s
success write out redirect data - 0.002s
success Build manifest and related icons - 0.117s
success onPostBootstrap - 0.127s
info bootstrap finished - 77.267s
success onPreExtractQueries - 0.003s
success extract queries from components - 0.406s
success write out requires - 0.046s
success run static queries - 0.212s - 1/1 4.72/s
success run page queries - 1.786s - 1679/1679 940.12/s
success Generating image thumbnails - 4.130s - 6/6 1.45/s

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/polyfill-entry.js


 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/app.js

failed Building development bundle - 0.747s

Steps to reproduce

Install the dependencies as shown and the same errors should occur.

Expected result

Project should build successfully.

Actual result

ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/app.js


 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/polyfill-entry.js

Environment

  System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.18.3 - /usr/local/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 84.0.4147.135
    Firefox: 78.0.2
    Safari: 13.1.1
  npmPackages:
    gatsby: ^2.24.53 => 2.24.53
    gatsby-image: ^2.4.16 => 2.4.16
    gatsby-plugin-manifest: ^2.4.27 => 2.4.27
    gatsby-plugin-offline: ^3.2.26 => 3.2.26
    gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10
    gatsby-plugin-sharp: ^2.6.31 => 2.6.31
    gatsby-plugin-styled-components: ^3.3.10 => 3.3.10
    gatsby-source-fetch: ^1.0.3 => 1.0.3
    gatsby-source-filesystem: ^2.3.27 => 2.3.27
    gatsby-source-graphql-universal: 3.3.0 => 3.3.0
    gatsby-source-prismic-graphql: ^3.6.2 => 3.6.2
    gatsby-transformer-csv: ^2.3.10 => 2.3.10
    gatsby-transformer-sharp: ^2.5.14 => 2.5.14
  npmGlobalPackages:
    gatsby-cli: 2.12.88

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
j-mcgregorcommented, Sep 15, 2020

Same issue here. Downgrading it to "gatsby": "2.24.51" fixes it temporarily

Unfortunately this isn’t working for me. Current versions:

    // package.json
    "@prismicio/gatsby-source-prismic-graphql": "^3.6.13",
    ...
    "gatsby": "^2.24.51",

image

It builds up to here and then hangs…

3reactions
PierreAndreiscommented, Sep 11, 2020

Having this issue as well. This might be related to gatsby-source-prismic-graphql messing with the babel file to get their preview working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown Option error from Babel in React-Native app
Turns out that the issue was related to react-native-dotenv settings. Changed babel.config.js to :
Read more >
Gatsby fails to build with new @prismicio ... - Prismic People
Unknown option : .reactRuntime. Check out @babel/core · Babel for more information about options. File: .cache/app.js.
Read more >
Discussion of Gatsby Develop ERROR #98123 WEBPACK ...
Hi, I'm new to using gatsby and am attempting to follow the tutorial on gatsbyjs.org. I have been successful in downloading and setting...
Read more >
Gatsby + Prismic website builds successfully in the local ...
... bundles failed 12:05:14 AM: Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
Read more >
Troubleshooting Common Errors - Gatsby
If the data you are requesting in a GraphQL query differs from what has been sourced in the GraphQL schema you might encounter...
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