Skip to content

[BUG] Tooltips fail to render in production build #936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tony-cocco opened this issue Feb 3, 2023 · 4 comments
Closed

[BUG] Tooltips fail to render in production build #936

tony-cocco opened this issue Feb 3, 2023 · 4 comments
Labels

Comments

@tony-cocco
Copy link

tony-cocco commented Feb 3, 2023

Describe the bug
The tooltip does not render when used in production minified project. _app-eda58d659857c8fd.js:15 Uncaught (in promise) TypeError: b is not a function (minified name which isn't super helpful).

Version of Package
v5.7.0 and 5.7.4

To Reproduce
We use nextjs, so running yarn build and then yarn start to use the minified production build:

  1. Hover item with tooltip.
  2. Observe error in inspector.

Expected behavior
I expect the tooltip to appear as it does when running yarn dev.

Desktop

  • OS: Mac Ventura 13.1
  • Browser Chrome@latest

Additional context
Rolling back to 5.3.2 works as expected.

I know this might not be super helpful considering the issue only appears in a minified build. Please let me know if there's any other information that might help.

@tony-cocco tony-cocco added the Bug label Feb 3, 2023
@gabrieljablonski
Copy link
Member

I'm assuming you're running a project with Next.js 13. It appears there are some issues with the new minifier being used in version 13, so you can set swcMinify: false in the options to go back to the old minifier. See #933 for more info.

If it ends up being something else, feel free to reopen the issue.

@gabrieljablonski gabrieljablonski closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
@tony-cocco
Copy link
Author

Thanks for the quick response. We are using Next13.

🥂

joncolque pushed a commit to joncolque/myresume that referenced this issue Feb 5, 2023
@vincentwinkel
Copy link

Why is this ticket closed?
Thanks for this (temporarily) workarorund, but asking people to disable the default Nest 13 minifier in their project because of 1 dependency module is not a fix.

I also have this problem in production:
v5.10: the whole website is unusable
v5.11: the error occurs when hoverr the element

@gabrieljablonski
Copy link
Member

@vincentwinkel Upgrade to [email protected] or later. See #1001, or the troubleshooting page for more details.

@ReactTooltip ReactTooltip locked as resolved and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants