-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Production build crashes on Next v14.0.2. #477
Comments
im have the same error: 13-2f45628bbf53fb8d.js:5 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'sqrt') function() { |
This also breaks pdfkit when trying to generate a pdf in build. Rolling nextjs back to 14.0.1 seem to fix the problem. |
Use transpilePackages: [''crypto-js'] in next.config.js file. I build project success in product mode with next js 14.3 . |
I'm having issues with this library and Nextjs >= 14.0.2.
I've elaborated the issue on NextJS in detail
Issue: vercel/next.js#58623
TLDR; It looks like the module
Math.sqrt
isundefined
in your libary when ran on client-sideThe text was updated successfully, but these errors were encountered: