GLIBC version errors after upgrading to Node 20 on Vercel, NEXTJS 12 #75579
Unanswered
FarhanAtAppyHigh
asked this question in
Help
Replies: 1 comment 2 replies
-
I guess, you could try to lazy load |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Since Node 16 was discontinued on Vercel, we upgraded our web app to Node 20. However, we encountered the following build error:
To resolve this, we followed an online discussion and installed "canvas": "^3.0.0-rc3". This allowed the build to succeed.
However, we are now facing a runtime error, and the entire app appears as a black screen. The logs show:
App Details:
Framework: Next.js 12
Libraries Used: Fabric.js, react-sketch-canvas, Konva.js
Observations & Questions:
Build works fine on local with same node version (20) and Based on our investigation, this issue seems to be caused by react-sketch-canvas, which depends on canvas.
Our main concern is: Why is this being built or imported on the server side?
We have explicitly marked the files importing react-sketch-canvas with "use client", yet the issue persists, it was working fine on node 16 version.
Any insights on how to resolve this issue would be greatly appreciated!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions