Can't resolve '@emotion/core'
Bug Report
Generating development SSR bundle failed Can't resolve '@emotion/core' in .........
docz: 2.4, react, and react-dom 17 in my project, when i run docz dev have the problem.
so i yarn add @emotion/core, but appear new problem : "The @emotion/core package has been renamed to @emotion/react. Please import it like this import { jsx } from '@emotion/react'.",
so i yarn @emotion/react the problem do not disappear。
i have another question,in my package.json just docz react react-dom ,but i find gatsby, gatsby-cli ...... in node_modules
I encountered the same issue and resolved by downgrading the @emotion/core package.
npm install @emotion/[email protected]
@sunvictor 's solution works although obviously not ideal
Docz should contain its internal packages, I shouldn't install @emotion/core manually and have it on my package.json just so docz can use it!
@AbdallahAbis that's right!! why does not contain self-dependencies, then need to install deps by yourself?? not friendly.
Docz should contain its internal packages, I shouldn't install
@emotion/coremanually and have it on my package.json just so docz can use it!
Maybe @emotion has a break-changing in v11, then docz use it. Waiting fix.
This is still an issue, maybe some work on this would be appreciated.
@coalio this should be fixed in the next version I'm doing right now
the
it doesn't work for me though
the
it doesn't work for me though
me too