-
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
gatsby-plugin-emotion: emotion 11 #28063
Comments
I am facing the same problem right now. |
You are incorrect with your first assumption, the peerDependency is still requiring version 10. So if you install that instead of 11 it'll all work. |
I handled this issue by specifying the version 10.0.5:
|
I'm facing the same issue as above. I tried reinstalling emotion in my project root directory using version 10.0.5, as @dhonysilva mentioned , but I keep getting;
|
It's |
That was it, thanks! |
Reinstalling with |
I changed to Edit: #27981 goes into more detail. |
|
If you want to use the upcoming version of
At least until 5.1 is released on npm |
私も、WebpackError: The |
Wow! Thank you, Martin! Switching to the upcoming version completely solved the issue. |
I'm using |
i tried the fix npm install gatsby-plugin-emotion @emotion/core@^10.0.5 , but the error changed to Can't resolve '@emotion/styled' in '/home/samar/Desktop/Gatsby/template/node_mod |
Description
The development version of the
tutorial-part-four
project in the official Gatsby tutorial series fails to build, erroring out because it relies upongatsby-plugin-emotion
and@emotion/core
, the latter of which has just released a major version update with breaking changes to the package’s naming.Specifically, there are 2 issues that cause the build failure:
gatsby-plugin-emotion
lists@emotion/core
in itspeerDependencies
with an optimistic version operator (i.e.^10.0.5
), which causes the latest version of the package to be relied upon at build time.The code samples in the documentation include imports that reference
@emotion/core
instead of@emotion/react
.Steps to reproduce
Run through the steps in
tutorial-part-four
from scratch.Expected result
The tutorial project’s development build is created without error.
Actual result
The development build fails out with the following error:
Environment
The text was updated successfully, but these errors were encountered: