You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Next.js Dev crashes completely, when OG image file is at located at certain paths.
File /app/lookup/[domain]/(dns)/opengraph-image.tsx seems to be the culprit.
Tested scenarios:
/app/lookup/[domain]/(dns)/opengraph-image.tsx ❌
/app/lookup/(dns)/opengraph-image.tsx ❌
/app/lookup/[domain]/opengraph-image.tsx ✅
/app/[domain]/(dns)/opengraph-image.tsx ✅
/app/lookup/opengraph-image.tsx ✅
/app/opengraph-image.tsx ✅
✅ Works
❌ Crashes
Provide environment information
Node.js v20.18.1
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 20.18.1
npm: 10.8.2
Yarn: N/A
pnpm: 9.15.0
Relevant Packages:
next: 15.1.1-canary.17 // Latest available version is detected (15.1.1-canary.17).
eslint-config-next: N/A
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.2
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Console logs
> next dev --turbo
▲ Next.js 15.1.1-canary.17 (Turbopack)
- Local: http://localhost:3000
- Network: http://192.168.178.53:3000
- Environments: .env.local
✓ Starting...
FATAL: An unexpected Turbopack error occurred. Please report the content of /var/folders/32/606grn711z92qgqzbyqfwg8w0000gn/T/next-panic-e35483a9cf5e5fb8118fb6b68f0435e0.log, along with a description of what you were doing when the error occurred, to https://github.com/vercel/next.js/issues/new
[Error [TurbopackInternalError]: A task panicked: range end index 6 out of range for slice of length 5
Debug info:
- Execution of get_entrypoints_with_issues failed
- Execution of Project::entrypoints failed
- Execution of AppProject::routes failed
- Execution of directory_tree_to_entrypoints_internal failed
- Execution of directory_tree_to_entrypoints_internal failed
- Execution of directory_tree_to_entrypoints_internal failed
- A task panicked: range end index 6 out of range for slice of length 5]
Link to the code that reproduces this issue
https://github.com/wotschofsky/domain-digger/tree/turbo-repro
To Reproduce
Current vs. Expected behavior
Currently, Next.js Dev crashes completely, when OG image file is at located at certain paths.
File
/app/lookup/[domain]/(dns)/opengraph-image.tsx
seems to be the culprit.Tested scenarios:
/app/lookup/[domain]/(dns)/opengraph-image.tsx
❌/app/lookup/(dns)/opengraph-image.tsx
❌/app/lookup/[domain]/opengraph-image.tsx
✅/app/[domain]/(dns)/opengraph-image.tsx
✅/app/lookup/opengraph-image.tsx
✅/app/opengraph-image.tsx
✅✅ Works
❌ Crashes
Provide environment information
Node.js v20.18.1 Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 20.18.1 npm: 10.8.2 Yarn: N/A pnpm: 9.15.0 Relevant Packages: next: 15.1.1-canary.17 // Latest available version is detected (15.1.1-canary.17). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Console logs
Log file
The text was updated successfully, but these errors were encountered: