doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.61k stars 1.46k forks source link

Can't resolve '@emotion/core' #1719

Open lindaJNlinda opened 2 years ago

lindaJNlinda commented 2 years ago

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

sunvictor commented 2 years ago

I encountered the same issue and resolved by downgrading the @emotion/core package. npm install @emotion/core@10.1.1

mortocks commented 2 years ago

@sunvictor 's solution works although obviously not ideal

AbdallahAbis commented 2 years ago

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!

dreamline2 commented 2 years ago

@AbdallahAbis that's right!! why does not contain self-dependencies, then need to install deps by yourself?? not friendly.

HiWayne commented 2 years ago

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!

Maybe @emotion has a break-changing in v11, then docz use it. Waiting fix.

coalio commented 2 years ago

This is still an issue, maybe some work on this would be appreciated.

pedronauck commented 2 years ago

@coalio this should be fixed in the next version I'm doing right now

amusiq commented 1 year ago

the

it doesn't work for me though

Talking-mute commented 1 year ago

the

it doesn't work for me though

me too

stefan-nolte commented 3 months ago

Does not work till today

Bluestar123 commented 2 months ago

still have problems now