When trying to compile a React project using @emotion/react, the following error occurs:
Resolve error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './types/jsx-namespace' is not defined by "exports" in /node_modules/@emotion/react/package.json
Current behavior:
When trying to compile a React project using
@emotion/react
, the following error occurs:To reproduce:
@emotion/react
.Expected behavior:
The project should compile without errors.
Environment information:
react
version: 18.3.3@emotion/react
version: 11.11.0yarn
version: 4.3.1node
version: v20.15.1Additional Information:
Code: