Skip to content

[BUG] Package fails to import on Next 13 #887

@brunocangs

Description

@brunocangs

Describe the bug
Next 13 tries to import the package as an ES Module as defined by the type: module field in package.json but fails, with an error as the main file is .cjs.

Version of Package
v5.3.3

To Reproduce

  • Create a new NextJS app with create-next-app
  • Install react-tooltip
  • Setup the package and add a tooltip to the pages/index.ts file.

Expected behavior
The package's type and main should match their type

Screenshots
image

Desktop (please complete the following information if possible or delete this section):

  • OS: MacOS 13.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions