Open Methuselah96 opened 3 months ago
I think this also breaks our types, because @emotion/cache
now references @types/node
, even though our project runs in the browser and has slightly different types for built-in functions.
I'm working on removing the incorrect node references here: https://github.com/emotion-js/emotion/pull/3219
As to the other problem with @emotion/utils
depending on @emotion/sheet
... I have to think about it a little more. I'll fix this in the coming days.
@Andarist hello. It looks like an ordinary hoisting problem. I've recently updated some of my emotion-related deps and stumbled upon this. In my case I used public-hoist-pattern[]=@emotion/sheet
(pnpm). I think there's missing dependency on types from utils → sheet. Lifting sheet solves the issue for me.
"@emotion/react":
"11.13.0",
Current behavior:
There are two new type errors related to missing dependencies that have popped up in the past week:
To reproduce:
@emotion/react
using a strict package manager (e.g., pnpm or Yarn PnP) and withskipLibCheck
set tofalse
Expected behavior:
No type errors
Environment information:
react
version: 18.3.1@emotion/react
version: 11.13.0