Skip to content

[BUG] Client-side error (".jsx is not a function") in production (minified) NextJS app #972

Closed
@thomasmost

Description

@thomasmost

Describe the bug

We are using NextJS. We have used react-tooltip v4 with no problem. We have wrapped it with the mounting effect to avoid SSR errors. When we update to v5, we get an application (client-side) error in production that reads a.jsx is not a function. The library functions fine in development.

Version of Package
v5.9.1

To Reproduce
deploy a production build of a NextJS app using a tooltip of this version—navigate to the page. Note that this is a run-time application error, not a build error.

Expected behavior
It should not crash the application

Screenshots
image

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

  • MacOS
  • Firefox
  • 110.0.1 (64-bit)
  • React 18 / Next 13

Additional context
We are also using a turbo-repo, though I don't expect that's the issue

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