Skip to content
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

Tooltip is not shown once it is deployed to Vercel #1221

Open
tech02223 opened this issue Aug 16, 2024 · 5 comments
Open

Tooltip is not shown once it is deployed to Vercel #1221

tech02223 opened this issue Aug 16, 2024 · 5 comments
Labels

Comments

@tech02223
Copy link

Hello.
Currently I'm working on Next.js, and built my website.
I used react-tooltip module to display a tooltip, and it works well on localhost.
But I noticed that tooltip is not shown after the website is deployed.
I'm not sure what I did incorrectly.

@gabrieljablonski
Copy link
Member

We have two sections on our troubleshooting page about possible issues with Next.js:

  1. Next.js TypeError: f is not a function
  2. Next.js "use client" error

If your issue does not relate to either of these situations, please try to give us some more information on what's exactly happening there.

@tech02223
Copy link
Author

I don't think my issue is not related to above issues. It works correctly on localhost. I can see the tooltips.
But I cannot see those tooltips if I deploy my website to Vercel. It is hosted in static mode.

@gabrieljablonski
Copy link
Member

Is your deployed project publicly available? If yes, please share so I can take a look.

If not, you'll need to do some investigation and see if you can find out anything to help us figure out the issue.

Best I can think of right now is to check the browser console in production and see if anything shows up there. Also check the console on localhost to see if there's anything that might get suppressed on production.

@danielbarion
Copy link
Member

danielbarion commented Aug 16, 2024

@tech02223 is the tooltip working on your project on both commands on your localhost? yarn dev, yarn build && yarn start

I'm asking because of the behavior of Next.js + React on development mode is different from production build.

@berejznoy
Copy link

I have same problem. It works well wher yarn dev but not working after yarn build
Uncaught (in promise) TypeError: w is not a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants