Closed
Description
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
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