-
-
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
Next.js + SSR + Cache: ENOENT when loading images sharp version 0.30.0 #3078
Comments
Hi, this looks like a Next.js caching or filesystem problem unrelated to sharp. Do the files that appear in the error message exist? Are you able to reproduce this using sharp alone? For me to investigate, I'll need a minimal, standalone code sample, without other dependencies (this means without Next.js). |
Currently, we are using the version: "sharp": "0.29.3" and we never experienced any errors. |
The filesystem paths in the error message look like they are from a SSR cache. I don't know how Next.js works, but at a guess it might use content-based hashing, so if you upgrade a dependency that generates content (e.g. sharp), the content-based hashes might also change. Have you tried clearing the SSR cache? |
We cleared everything before upgrading so it shouldn't be that. |
Thank you, my good sir, that ticket solved our issue as well. Have a good one! |
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?What are the steps to reproduce?
What is the expected behaviour?
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
Are you able to provide a sample image that helps explain the problem?
What is the output of running
npx envinfo --binaries --system
?The text was updated successfully, but these errors were encountered: