-
SummaryI'm using react-pdf. Everything works as expected locally. Here is the error that is causing the Vercel build to fail:
Canvas is a dependency of pdf.js, which is a dependency of react-pdf. Just wondering if anyone has experienced the same/similar issue? Any suggestions would be very welcome. ExampleNo response Steps to ReproduceEnvironment: Create a NextJS app |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 28 replies
-
Hi, we're aware of this issue, and the only workaround as of today is to downgrade Node version to We're actively discussing how we can support those GLIBC versions in Node |
Beta Was this translation helpful? Give feedback.
-
We are running into the same issue (Not due to this specific package). Is there a timeline on when the image will be updated as EoL is about 6-7 weeks away now (https://vercel.com/changelog/node-js-14-and-16-are-being-deprecated) on Vercel. As this is preventing us from upgrading some other services as well. |
Beta Was this translation helpful? Give feedback.
-
running into the same issue. also due to the canvas lib required by pdf-js. |
Beta Was this translation helpful? Give feedback.
-
Im running into the same issue, the problem is that I cant downgrade node js version since I'm using langchain and it require node >= 18 |
Beta Was this translation helpful? Give feedback.
-
+1, also running into
after upgrading to node 18, currently downgrading to 16 |
Beta Was this translation helpful? Give feedback.
-
Same issue when building Zola 0.17.2 on vercel, I don't use Node but still have the problem. Folks at Zola said the image used by vercel is an old image getzola/zola#1713 (comment)
Update: I used Netlify instead |
Beta Was this translation helpful? Give feedback.
-
I also encountered a similar error when starting my first Vercel project, I have a monorepo and depend on
I don't want to go through my monorepo and downgrade everything. I might try and deploy via a GitHub action as GitHub's machines support latest node for running my build commands. i.e. going to try this next: https://vercel.com/guides/how-can-i-use-github-actions-with-vercel#configuring-github-actions-for-vercel then probably give up on vercel unless anyone has any ideas |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm receiving the same 'Error: /lib64/libc.so.6: version `GLIBC_2.28' not found' error. I'm using Next.js and Canvas. It's a bit worrying to see that v16 is going to be deprecated early next year. I don't want to have to move from Vercel hosting as it's great. |
Beta Was this translation helpful? Give feedback.
-
Deal breaker atm |
Beta Was this translation helpful? Give feedback.
-
Issue resolved with this, but had similar issue with Node version. Using 16x fixed the problem, but it's really not great to see when the 16x version is about do be deprecated really soon |
Beta Was this translation helpful? Give feedback.
-
Hi @smaeda-ks , We have a use-case similar to @ewaninfo and some of the other members in this discussion. The workaround of using 16x has also worked for us for upgrading from 14x. We would appreciate if you could update the thread once a fix has been planned for this issue, so that we can plan upgrading our app to 18x accordingly. |
Beta Was this translation helpful? Give feedback.
-
Any update on this issue? I really want to use node 18 asap. |
Beta Was this translation helpful? Give feedback.
-
@smaeda-ks Any update on this issue? We are running into more and more issues because we cannot update our app to node 18x. The deprecation date is also not too far away anymore. Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
-
Updating to nextjs 14 is also not possible with node 16x, so the problem is getting more and more urgent. |
Beta Was this translation helpful? Give feedback.
-
I am getting the same issue! any update please? |
Beta Was this translation helpful? Give feedback.
-
@Karyum This works, thanks for the heads-up. It is finally resolved everyone! Very happy. Steps to fix:
I tested it with nextjs 14x and all packages, including react-pdf, updated. And it works. Very happy, thanks to everyone for keeping this issue alive and for resolving it. |
Beta Was this translation helpful? Give feedback.
-
Hello @smaeda-ks , We are seeing that a few users are not facing this issue on using Node version 20 in Vercel. Can you please confirm if the fix also going to be applicable for version 18, so that we can plan the upgrade accordingly? |
Beta Was this translation helpful? Give feedback.
Hi, we're aware of this issue, and the only workaround as of today is to downgrade Node version to
16.x
. Could you try that?We're actively discussing how we can support those GLIBC versions in Node
18.x
, and we will deliver updates when we have an update to share.