-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. #25093
Comments
I had the same this morning. The problem was that I did not have I think the problem is due to a problem with the two dependencies |
Thanks for opening this issue! At the moment, I'm unable to reproduce the error you're seeing. You noted a link to your specific repo, but I don't believe it's linked. Would you be able to add that? |
@jbuget : I too didn't have |
Wonderful, was able to reproduce. npm and yarn should both work, so I'll dig into this. |
To add context, the underlying bug is that there are two different This should be resolved in the latest Gatsby release but the starter is picking up the version before that. Will get a new release published shortly. |
Unfortunately the fix did not solve the problem. So continuing to work on this unmet peer dependency issue (only in npm). |
As @jbuget pointed out, I tried yarn and it is working if I am doing following:
|
Understood. This is definitely only an issue with npm. |
Description
I am trying to setup a Gatsby site using Gatsby blog theme starter, everything works as expected, till the time I run
gatsby develop
Steps to reproduce
Run below commands, which i picked from Gatsby official documentation
gatsby new my-blog https://github.com/gatsbyjs/gatsby-starter-blog-theme
cd my-blog
gatsby develop
here is the link to my git repo : my-blog
Expected result
As per the documentation, I am supposed to get below page:
Actual result
But I am getting this:
Environment
The text was updated successfully, but these errors were encountered: