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.

Can no longer run gatsby develop

See original GitHub issue

Description

I can no longer run gatsby develop after updating the CLI.

Steps to reproduce

run gatsby develop

Expected result

Should run develop fine

Actual result

 ERROR #98124  WEBPACK

Generating SSR bundle failed

Can't resolve 'react/jsx-runtime.js' in '/Users/joetaylor/Documents/www/joebentaylor/.cache'

If you're trying to use a package make sure that 'react/jsx-runtime.js' is installed. If you're trying to use a local file make sure that the path is correct.

File: .cache/develop-static-entry.js

Environment


  System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.19.0 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Languages:
    Python: 2.7.15 - /usr/local/bin/python
  Browsers:
    Chrome: 86.0.4240.80
    Edge: 83.0.478.54
    Firefox: 80.0.1
    Safari: 14.0
  npmGlobalPackages:
    gatsby-cli: 2.12.107
    gatsby: 2.24.77

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:26 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
gaearoncommented, Oct 16, 2020

It seems like the common thread is that you use React in development and Preact in production. To me, this sounds like an extremely fragile setup because Preact is known to have behavior differences and incompatibilities with React, but that’s your call. What I think is happening here is that Gatsby detects React supports the new JSX transform (so it uses it), but it isn’t aware of the Preact override, and I think maybe Preact doesn’t support it yet (?)

2reactions
ttstausscommented, Oct 16, 2020

Facing the same issue.

Edit: @joebentaylor1995, seems to go away when I revert back to React@16.13.1 from React@16.14.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Common Errors - Gatsby
As you encounter errors while developing with Gatsby, it is likely you'll run into something that other users have already stumbled upon.
Read more >
Gatsby develop not working after creating a project
I created a Gatsby project and whenever I run gatsby develop or npm run develop I get the following error: UNHANDLED REJECTION spawn...
Read more >
Gatsby Changelog | 5.3.0
As of Gatsby 5 we're no longer supporting Gatsby 2 and Gatsby 3. ... Then you can run gatsby develop and files will...
Read more >
gatsby-cli - npm
Gatsby command-line interface for creating new sites and running ... For environments where you can't pass the --prefix-paths flag (ie ...
Read more >
gatsby develop doesn't work, but npm run develop does?
With gatsby develop you use the gatsby-cli to run the development server. However, with npx now more widely available, you don't need to...
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