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
Animated WebP images work in development but not when building #39317
Comments
Thanks for reporting. This seems to be an issue with For some reason, this returns next.js/packages/next/server/lib/squoosh/impl.ts Lines 47 to 49 in 6b49d47
|
Thank you so much. Installing |
We were resizing animated images when importing them, but we don't optimize images when they come from an upstream provider. For consistency, we can skip resizing for local animated images as well. Fixes #39317 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When I run
yarn dev
and open http://localhost:3000/, I can see the animated image of the cat.However, when I run
yarn build
I get the following error.Expected Behavior
yarn build
the Next.js app should build without any errors.yarn start
and open http://localhost:3000/, I should see the animated image of the cat.Link to reproduction
https://github.com/aaditmshah/animated-webp-static-import-bug
To Reproduce
yarn install
.yarn dev
and open http://localhost:3000/ to see the animated image of the cat.yarn build
to see the aforementioned build error.The text was updated successfully, but these errors were encountered: