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
Emotion versioning #522
Comments
I also get this warning for
Installing @emotion/core and @emotion/styled doesn't fix it. I also tried installing @emotion/utils. Still not working. PS: My project has dep |
@nerdmax try installing I had this problem yesterday and assuming we had the same error then there should be a line before that message you pasted saying that the import is happening inside of something like Hope that works for you. |
@Stevo14850 Thank you so much! Your solution works perfectly! Really appreciate it! |
Glad it worked or you @nerdmax! 🎉 You |
😅Thank you for your reminding. |
@pedronauck Why was this closed? It seems to still be an issue with the latest release. |
In my project and docz v0.13.7, this error still prevents updating modules and |
Have you tried installing @emotion/core and @emotion/styled ? |
Yes, However that issue is already been cleared up.
But it is strange as actually |
I came across this and it ended up that I needed to add a bunch of emotion things plus This feels like it shouldn't be something we need to install as a requirement of another library but here is what fixed it for me:
hope this helps anyone else coming across it. |
Agreed! Don't know why |
Bug Report
Emotion version seems to be inconsistent
I'm getting import errors in npm around @emotion/, specifically some referenced classes. @emotion/core and @emotion/styled seem to be pulling incompatible versions. I don't see a peer dependency for emotion in the docs but adding v10.0.5 of @emotion/core and @emotion/styled seems to fix the problem.
Perhaps I'm just missing the part of the docs or package.json where it's a peer dependency?
To Reproduce
package-lock.json
andnode_modules
npm i docz docz-theme-default
npm run docz:dev
The import errors I'm seeing without @emotion as a dependency:
The warnings when I have emotion/core and emotion/styled as depdencies:
The documentation is compiled successfully with these warnings.
Expected behavior
Should emotion be documented as a peer dependency?
Environment
Additional context/Screenshots
Forgive me if this is off base..
The text was updated successfully, but these errors were encountered: