-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed as duplicate of#85429
Copy link
Labels
TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.Confirmed issue that is tracked by the Turbopack team.
Description
Link to the code that reproduces this issue
https://github.com/H01001000/reproduction-app
To Reproduce
- use src dir
- Set images, loader: custom and provide loaderFile (as usual) make sure its in src
- Use a Next/Image
- run next dev or next build
Current vs. Expected behavior
only trigger on using src dir.
On windows pc, using turbopack (default) will cause the bug, switch to webpack the bug gone
Also tested on macbook m4 pro, turbopack work as expected
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Available memory (MB): 65447
Available CPU cores: 32
Binaries:
Node: 22.13.0
npm: 9.8.1
Yarn: 4.4.1
pnpm: 8.10.5
Relevant Packages:
next: 16.0.1
eslint-config-next: 15.1.2
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.2
Next.js Config:
output: standaloneWhich area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Tried on next@16, 16.0.1, 16.0.2-canary.5, all will leads to the bug
Metadata
Metadata
Assignees
Labels
TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.Confirmed issue that is tracked by the Turbopack team.