-
Notifications
You must be signed in to change notification settings - Fork 111
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
RangeError on build step #220
Comments
Do you have somewhere showing this bug in action that I could look at? |
Here's a reproducible example: https://stackblitz.com/edit/nextjs-fznkmq?file=package.json,next.config.js I've narrowed it down to the options
The error is gone when Another issue that manifested in different behaviours on prod and dev builds, which might be related, is pmndrs/react-three-fiber#2533. |
Hmmm, I don't get that error when setting |
Thanks, that worked to reproduce it. It seems there is a bug in how swcMinify is rewriting the code. This seems to be the culprit: That
It seems it's merging two separate variables ( I'm not sure where to point you to get it fixed in the minifier. |
Thanks for debugging. I've referenced your find in this thread: vercel/next.js#30237 (comment) |
Seems like the issue is fixed on canary: vercel/next.js#30237 (reply in thread) |
Great! I'm going to close this issue then. 🎉 |
I'm seeing this issue in next.js 13.0.3 |
I get the follow errors on production (I am using next.js) when I run
next build
:When running
next dev
this error doesn't come up.-I am using troika-three-text via the drei component. I found out this uses the
preloadFont
function as well, I am not sure that that is relevant, but just in case it is.-Error happens both in Chrome and Safari.
The text was updated successfully, but these errors were encountered: