-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Regression of tippy.js between 13.4.10-canary.0 and 13.4.10-canary.1 #53151
Comments
can confirm. having the same issue with tippy 4.2.6 on >13.4.10 as well. downgrading to =13.4.9 fixed it. |
I'm experiencing this as well. It broke after upgrading the Next.js version and it works on development but not in production. Tippy's author also confirmed that this looks like a minification issue on Next.js atomiks/tippyjs-react#379 |
Hi, Disabling swcMinify fixes the issue: Which leads me to believe this is an issue with SWC, as this playground, somewhat shows. What happens is that the className plugin from tippy gets resolved to an empty object when minifying, and there's no |
I guess the course of action here is to track these (?):
And this, already closed, but related issue: #53096 |
This will be fixed by swc-project/swc#7702 |
This looks like it was added, but then reverted in a canary release. Any further updates on this? |
Thanks for the work on this, but it seems the issue is not resolved with the changes contained in release 13.4.13-canary.13. The error persists as described by the OP. Working locally, but errors out when built and run on production. |
We are facing the same issue too 😭 |
We are also facing this issue with Tippy 😰 |
Well, this is already fixed. I did @shanehoban Please retry |
@kdy1 thanks once again, but this still does not appear to be resolved for me, on latest canary: Deployment here: https://chatterbox-hodev-5zx94dxmi-h-o.vercel.app/
|
@shanehoban Please provide a repro |
@kdy1 Here's one with the latest canary release: https://github.com/shanehoban/nextjs-tippy-issue/ Just to be clear, it works during development, only fails when built for production. |
I did
|
Works for me too, using:
|
I deployed my github repo above, and it fails on vercel, this isn't completely closed yet I would imagine: https://nextjs-tippy-issue.vercel.app/ Deployment ID: DG1D2kjN5QVhNNgp1bEXorZecWHy |
Can report that we're having the same issue here. Works locally and fails in production. |
@leffot Please provide a repro |
@shanehoban Yes it works |
It doesn't though? https://nextjs-tippy-issue.vercel.app/ On version Repo deployed: https://github.com/shanehoban/nextjs-tippy-issue |
Does it fail locally for you @shanehoban? What Node version does the deployed version use? |
@icyJoseph Yeah it fails for me when built and run locally for prod (so the same outcome as the vercel deployment). I'm on Node
|
It works for me when building on Windows and fails when building on Ubuntu (Github Actions). NextJS 13.4.13 p.s.: this is for a static site export, there is no Node on the deployed version |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 Binaries: Node: 18.15.0 npm: 9.6.6 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.4.12 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/damianfrizzi/nextjs-tippy-regression
To Reproduce
yarn dev
-> everything works fineyarn build
andyarn start
-> app crashes with Application error: a client-side exception has occurred (see the browser console for more information).Describe the Bug
We tried to upgrade to the latest Next.js and it broke pages that where using
@tippyjs/react
.This only happens in production. Everything works correctly in development.
Git bisect shows me that the regression was introduced between 13.4.10-canary.0 (good) and 13.4.10-canary.1 (bad).
Expected Behavior
The text was updated successfully, but these errors were encountered: