nextjs - 💡(How to fix) Fix [Regression] AVIF fails to render with The requested resource isn't a valid image for ... received null [9 comments, 7 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#84187Fetched 2026-04-08 02:20:22
View on GitHub
Comments
9
Participants
7
Timeline
17
Reactions
3
Author
Timeline (top)
commented ×9subscribed ×5issue_type_added ×1labeled ×1

Code Example

The requested resource isn't a valid image for /_next/static/media/atgiftcard.81b93929.avif received null

---

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.6.0-canary.27 // Latest available version is detected (15.6.0-canary.27).
  eslint-config-next: N/A
  react: 19.1.1
  react-dom: 19.1.1
  typescript: 5.3.3
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/brave-goodall-pnz3tm

To Reproduce

  1. Open https://codesandbox.io/p/devbox/brave-goodall-pnz3tm
  2. View Preview and notice broken image.
  3. View terminal and notice output:
 ⨯ The requested resource isn't a valid image for /_next/static/media/atgiftcard.81b93929.avif received null

Current vs. Expected behavior

I expect the image to render.

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.6.0-canary.27 // Latest available version is detected (15.6.0-canary.27).
  eslint-config-next: N/A
  react: 19.1.1
  react-dom: 19.1.1
  typescript: 5.3.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Image (next/image)

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I'll do some additional debugging.

extent analysis

TL;DR

  • The issue with the broken image in Next.js can likely be resolved by checking the image file and its import statement in the code.

Guidance

  • Verify that the image file atgiftcard.81b93929.avif exists in the correct directory and is correctly referenced in the code.
  • Check the import statement for the image in the code to ensure it is correctly formatted and points to the correct file location.
  • Review the Next.js documentation for next/image to ensure that the component is being used correctly.
  • Test the image in a different format (e.g., JPEG or PNG) to see if the issue is specific to the AVIF format.

Example

  • No code snippet is provided as the issue does not include specific code that can be modified.

Notes

  • The issue may be related to the specific version of Next.js being used (15.6.0-canary.27), but without more information, it is difficult to determine if this is the cause.
  • The issue only occurs in next dev mode, so it may be related to the development environment.

Recommendation

  • Apply workaround: Try using a different image format or checking the image file and its import statement in the code, as the issue may be related to the specific image or its usage in the code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix [Regression] AVIF fails to render with The requested resource isn't a valid image for ... received null [9 comments, 7 participants]