Due to an underlying issue in corepack (https://github.com/nodejs/corepack/issues/612), builds using pnpm on most versions of the nodejs heroku buildpack are failing. They’ve put up a fix for this issue here https://github.com/heroku/heroku-buildpack-nodejs/pull/1371, which seems to be released on v280 of the buildpack.
On App Platform, the build phase notes that we’re using v0.260.4 of the nodejs buildpack, though it’s marked as “latest” on the DO dashboard. How can we upgrade the buildpack to a later version? All our builds are now failing on app plaform due to this issue.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey 👋,
UPDATE: The team has confirmed that the patch to fix the issue is being rolled out and should be available to everyone soon. Thank you for reporting the issue!
I believe that right now, DigitalOcean App Platform doesn’t provide a way to manually update the Node.js buildpack version. The “latest” tag in the dashboard refers to the version currently supported by DigitalOcean, not necessarily the most recent upstream release.
Since your builds are failing due to the corepack issue with pnpm, one option is to use a Dockerfile instead of relying on the buildpack. This would give you full control over the Node.js version and dependencies, allowing you to install pnpm manually:
Another approach is to define the Node.js version explicitly in your
package.json
using theengines
field, though this won’t necessarily update the buildpack itself though.If you need an immediate fix, the Dockerfile method is probably your best bet.
It might also be worth reaching out to DigitalOcean support at https://do.co/support to check if there’s a way to request a buildpack update, especially since this is actively breaking builds.
Let me know how it goes!
- Bobby