-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
pnpm 8.14.3, Next.js 14.1.0 standalone mode, sharp missing #3967
pnpm 8.14.3, Next.js 14.1.0 standalone mode, sharp missing #3967
Comments
This looks like a problem with the standalone build logic in Next.js specific to pnpm and its use of symlinks. This logic is based in the https://github.com/vercel/nft dependency so you may want to ask there. Outside the container I see the following, please note the symlink.
Inside the container, after Next.js has run its file tracing, the symlink has gone:
@styfle Do you have any ideas around this? I saw there are some existing tests at https://github.com/vercel/nft/tree/main/test/unit/pnpm-symlinks so perhaps this might be another scenario to add? |
Thanks I'll take a look 👍 The bug is likely in This looks like a duplicate of vercel/next.js#59346 |
I was mistaken, it was a bug in |
This ensures we trace child optional dependencies as well so that the symlink hierarchy is maintained for pnpm. x-ref: vercel/next.js#59346 x-ref: lovell/sharp#3967 --------- Co-authored-by: Steven <steven@ceriously.com>
- Release notes https://github.com/vercel/nft/releases/tag/0.26.3 - Fixes #59346 - Related to lovell/sharp#3967 Closes NEXT-2334
Thanks for the updates, I'll close. For anyone else coming here this was fixed in Next.js v14.1.1-canary.28 via commit vercel/next.js@5ee6a07 |
Is there any holdover solution in the meantime? |
@jacksongoode |
I've tried it and it works, thank you! |
- Release notes https://github.com/vercel/nft/releases/tag/0.26.3 - Fixes #59346 - Related to lovell/sharp#3967 Closes NEXT-2334
Remove manual fix to [sharp issue](lovell/sharp#3967) because fixed in Next 14.1.4
Hello,
I'm encountering a problem while trying to use Next.js 14 with Docker and the 'sharp' package for image optimization. I've followed all the required steps, but I'm consistently facing an error.
Here is the link to my repository for reference:
GitHub Repository Link
The specific error message I'm encountering in Docker is as follows:
Below is my Dockerfile:
And this is my .env file:
The issue seems to occur consistently, and it affects the ability to convert images to WebP format for optimization.
I would greatly appreciate any assistance or guidance in resolving this issue. Please let me know if you need any more information or if there are specific details you'd like me to provide.
Thank you for your help.
The text was updated successfully, but these errors were encountered: