Skip to content

[@emotion/react] Regression for importing types in v11.14.0 #3310

@emmenko

Description

@emmenko

Current behavior:

In v11.13.5 the import @emotion/react/types/jsx-namespace works as expected.

In v11.14.0 the import @emotion/react/types/jsx-namespace does not work.

Image

To reproduce:

https://codesandbox.io/p/sandbox/emotion-typescript-example-forked-dsrcnf

If you change the version of @emotion/react to v11.13.5 it works.

PS: the issue might be related with the changes in #3284

Expected behavior:

The import @emotion/react/types/jsx-namespace should work.

Environment information:

  • react version: 17.0.2
  • @emotion/react version: 11.14.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions