problems launching gatsby develop
#35313
Replies: 14 comments 16 replies
-
I'm having a similar issue after updating gatsby to 4.11.1 and running npm outdated and updating all to Wanted using npm. Terminal says: Module not found: Error: Can't resolve '@gatsbyjs/reach-router/lib/utils' in I then use npm to install reach/router via the command npm install @reach/router The terminal says: I suspect these errors are caused by Gatsby 4.11.1 relying on [email protected] and on @reach/router, which requires [email protected]. |
Beta Was this translation helpful? Give feedback.
-
Hi @IhorFedorov7, I was not able to reproduce this. I recommend trying the command listed in the starter itself in case there's some issue with your global install of gatsby cli:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am having very similar problem in this project. Which happens every time I update @gatsbyjs/reach-router from v1.3.6 to 1.3.7, then run
|
Beta Was this translation helpful? Give feedback.
-
I was having the same problem. Turns out that I was unable to make
rm -r package-lock.json node_modules .cache
pnpm i
pnpm add -D gatsby-plugin-pnpm
// gatsby-config.js
module.exports = {
plugins: [
`gatsby-plugin-pnpm`,
...
]
} Now everything is working again |
Beta Was this translation helpful? Give feedback.
-
This is annoying. Every go at updating dependencies is russian roulette. Whenever this error appears, I end up spending hours trying to get the project to work again. And this has been ongoing for over 4 months now. The issue is so bad, I feel the only way to get rid of it is migrating away from gatsby. Why was this issue moved to a discussion? |
Beta Was this translation helpful? Give feedback.
-
Hi all, so sorry you are experiencing lingering issues with this. I originally moved this to a discussion when it was probably better that I left it as an issue and requested for a minimal reproduction. Over time it's gathered various comments from people that have landed here, but it's difficult to separate signal from noise. If you're still experiencing issues, please open a new issue with a minimal reproduction and we'll do our best to triage. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Today I updated @gatsbyjs/reach-router to 1.3.10-no-navigate.4 and gatsby 4.21.1 (including all the other gatsby stuff) and now get a slightly different error:
So instead of Here the complete error:
I tried:
I really do not know why I keep getting these errors almost every time I update gatsby related libraries. |
Beta Was this translation helpful? Give feedback.
-
Similar to #35313 , downgrading to My situation is pretty niche I think but I wanted to share in case it helps someone else. I'm using yarn workspaces (yarn version
The issue for me seemed to be that strapi uses react 17. So I was able to solve the problem by either:
|
Beta Was this translation helpful? Give feedback.
-
I'm getting issue running
before that I had to force install gatsby-scripts, gatsby-react-router-scroll, gatsby-link into package.json, I have It is just not looking down the node_modules tree. Please fix. |
Beta Was this translation helpful? Give feedback.
-
Found the solution, described it in my latest issue: #36565 |
Beta Was this translation helpful? Give feedback.
-
Same problem here when we upgrade from React 17.0.2 to 18.2. Any solution to this? Since there are several open issues on Github with the same problem. |
Beta Was this translation helpful? Give feedback.
-
This worked for me in
I use PNPM. |
Beta Was this translation helpful? Give feedback.
-
Please try installing the missing packages using npn install --force. It should help. |
Beta Was this translation helpful? Give feedback.
-
Preliminary Checks
Description
by installing npm install -g gatsby-cli
after i created a new project gatsby new blog
I have a folder but without node_modules
when running gatsby develop gives an error and recommends installing manually npm install after repeated gatsby develop starts to give such errors
ERROR #98124 WEBPACK
Generating development SSR bundle failed
Can't resolve '@reach/router/lib/utils' in 'C:\Users\ihorf\Desktop\Igor\WORK\GATSBY\adlockBlog.cache'
If you're trying to use a package make sure that '@reach/router/lib/utils' is installed. If you're trying to
use a local file to make sure that the path is correct.
File: .cache\find-path.js
ERROR #98124 WEBPACK
Generating development SSR bundle failed
Can't resolve 'gatsby-link' in 'C:\Users\ihorf\Desktop\Igor\WORK\GATSBY\adlockBlog.cache'
If you're trying to use a package make sure that 'gatsby-link' is installed. If you're trying to use a local
file make sure that the path is correct.
File: .cache\gatsby-browser-entry.js
ERROR #98124 WEBPACK
Generating development SSR bundle failed
Can't resolve 'gatsby-react-router-scroll' in 'C:\Users\ihorf\Desktop\Igor\WORK\GATSBY\adlockBlog.cache'
If you're trying to use a package make sure that 'gatsby-react-router-scroll' is installed. If you're trying
![image_2022-03-31_09-20-56](https://user-images.githubusercontent.com/50741511/161000015-cc00aee6-2274-4598-91aa-db91686566c8.png)
to use a local file make sure that the path is correct
.
Reproduction Link
Steps to Reproduce
Expected Result
I'm waiting for help and solving the problem, because I really want to create a project on Gatsby js
Actual Result
error
Environment
Config Flags
No response
Beta Was this translation helpful? Give feedback.
All reactions