-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Standalone export Sharp executable is not present with pnpm #59346
Comments
Same here. Deploying with Docker + DigitalOcean App Platform. |
Try using version 0.32.6 of Sharp |
@rusted-love I fixed it temporarily with this way. |
This is caused by vercel/nft#371 |
Same here. I think sharp version is related. |
Yes, this works for us. Hopefully, it's a temporary solution... @duvillierA why did you downvote? |
I tried version 0.32.6 of Sharp, but it unfortunately didn't resolve the issue for my project EDIT: |
v0.32.6 doesn't works for me as well :/ |
finally found that issue here 🙏 any ETA to get the issue resolved? I assume a lot of people running in standalone mode will face this issue 😅 |
It should already be fixed in v14.0.5-canary.36 |
good to know, thanks! wondering why the fix isn't linked to this issue 🤔 |
These are the related issues/prs: |
Same in standalone mode, I had to revert to 0.32.6 |
This worked for me using Next v12.2.0 and Yarn v1. Took a while to figure this out, but it says in their installation instructions that if you're using |
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 <[email protected]>
Looks like the issue in this case was pnpm has slightly different node_modules behavior than npm so some of the relevant binary files were not copied correctly. This will be fixed in #61538 thanks! |
- Release notes https://github.com/vercel/nft/releases/tag/0.26.3 - Fixes #59346 - Related to lovell/sharp#3967 Closes NEXT-2334
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
- Release notes https://github.com/vercel/nft/releases/tag/0.26.3 - Fixes #59346 - Related to lovell/sharp#3967 Closes NEXT-2334
Link to the code that reproduces this issue
https://github.com/limanmys/website/blob/7e9d2c005e7d3197c8aecbfc98fa458a4ee40252/.github/workflows/main.yml#L45
To Reproduce
Current vs. Expected behavior
When i build and use export, i get "Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly." error. I fixed it by myself at https://github.com/limanmys/website/blob/7e9d2c005e7d3197c8aecbfc98fa458a4ee40252/.github/workflows/main.yml#L45 but isn't it supposed to move node_modules/@img folder to .next/standalone/node_modules?
Expected behavior is .next/standalone/node_modules folder to contain @img folder for Sharp after exporting but at this time it is not.
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 Binaries: Node: 18.19.0 npm: 10.2.3 Yarn: 3.3.0 pnpm: 8.10.2 Relevant Packages: next: 14.0.3 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
Standalone mode (output: "standalone")
Additional context
I also tested latest 14.0.4-canary.47 version still happens.
I am deploying to Ubuntu 22.04 with standalone export.
The text was updated successfully, but these errors were encountered: