docz icon indicating copy to clipboard operation
docz copied to clipboard

Can't resolve '@emotion/core'

Open lindaJNlinda opened this issue 4 years ago • 11 comments

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

lindaJNlinda avatar Feb 22 '22 10:02 lindaJNlinda

I encountered the same issue and resolved by downgrading the @emotion/core package. npm install @emotion/[email protected]

sunvictor avatar Feb 23 '22 08:02 sunvictor

@sunvictor 's solution works although obviously not ideal

mortocks avatar Apr 28 '22 04:04 mortocks

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 avatar May 10 '22 20:05 AbdallahAbis

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

dreamline2 avatar Jun 28 '22 02:06 dreamline2

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.

HiWayne avatar Aug 23 '22 08:08 HiWayne

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

coalio avatar Oct 05 '22 14:10 coalio

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

pedronauck avatar Oct 05 '22 20:10 pedronauck

the

it doesn't work for me though

amusiq avatar Jul 22 '23 04:07 amusiq

the

it doesn't work for me though

me too

Talking-mute avatar Aug 31 '23 12:08 Talking-mute