-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error installing sharp #1303
Comments
Hey @binaryhubio — this is actually an issue with Sharp and Docker rather than Payload. We've run into this before and there are some helpful issues / threads out there that can help you fix this. lovell/sharp#2875 I'm going to close this for now but we do have an official @denolfe can you share that |
Here is the working docker-compose.yml. Modify as needed.
|
@jmikrut I think the Dockerfile in the create-payload-app could use some improvement to avoid this error. I encountered the same issue and realized the Dockerfile is copying our local
|
Confirming the following
|
@florinmtsc Did you solve the issue? |
Well I'm leaving this comment for anyone in the future (myself included) as a reminder what I just learned (coding definitely doesn't fail to surprise me with something new to learn every other day for sure!). So, if you pass the Regardless, lesson learned and I will now be quite wary of running |
I’m getting this in my deployment on Vercel now.
|
Yes - I'm seeing the same thing. I can't get any new next-payload projects to deploy on Vercel, even though they run fine locally.
|
Same thing! Can we re-open this? |
Same error here while running a build |
This is a big problem during build... |
It's not the most efficient solution, but basing on the 18-slim image worked for me: FROM node:18-slim
WORKDIR /home/node/app
COPY . .
RUN yarn install
RUN yarn build
ENV NODE_ENV=production
ENV PAYLOAD_CONFIG_PATH=dist/payload.config.js
EXPOSE 3000
CMD ["node", "dist/server.js"] Please take care not to let this scoop up I know this issue is closed, but I think it's one of the top search results for the error 😅 |
This issue has been automatically locked. |
Bug Report
Sharp error: "Cannot find module '.../build/Release/sharp-linux-arm64v8.node'"
Current Behavior
I am running payload cms inside nestjs in a docker image FROM 'node:18'. It used to work but suddenly I am getting this sharp error (I am running on an M1 max processor) - but it used to work...
Expected Behavior
To build correctly
Possible Solution
Not sure, I spent 4 hours on this matter and no success.
Steps to Reproduce
Detailed Description
The text was updated successfully, but these errors were encountered: