-
Notifications
You must be signed in to change notification settings - Fork 30k
Closed as duplicate of#85429
Copy link
Labels
Image (next/image)Related to Next.js Image Optimization.Related to Next.js Image Optimization.
Description
Link to the code that reproduces this issue
https://github.com/damianfrizzi/next-windows-image-loader-bug
To Reproduce
- bun install
- bun run dev
- Page crashes with error on Windows
Current vs. Expected behavior
The globally defined custom image loader works on MacOS but not on Windows.
On Windows the following error appears:
\next-windows-image-loader-bug\.next\dev\server\chunks\ssr\node_modules_e6f2a25f._.js: Invalid source map. Only conformant source maps can be used to find the original code. Cause: Error: sourceMapURL could not be parsed
⨯ Error: Image with src "https://example.com/someimage.jpg" is missing "loader" prop.
Read more: https://nextjs.org/docs/messages/next-image-missing-loader
at ignore-listed frames {
digest: '2389313161'
}
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 65014
Available CPU cores: 14
Binaries:
Node: 24.11.1
npm: 11.6.2
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 16.0.5 // Latest available version is detected (16.0.5).
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.9.3
Next.js Config:
output: N/AWhich 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
No response
chrusli, Ali-Tagipour and unclebay143LeshanieM and unclebay143
Metadata
Metadata
Assignees
Labels
Image (next/image)Related to Next.js Image Optimization.Related to Next.js Image Optimization.