Can no longer run gatsby develop
See original GitHub issueDescription
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:
- Created 3 years ago
- Reactions:1
- Comments:26 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 (?)
Facing the same issue.
Edit: @joebentaylor1995, seems to go away when I revert back to React@16.13.1 from React@16.14.0.