Skip to content

Error occurred in Next.js turbopack with yarn berry. #77357

@willofi

Description

@willofi

Link to the code that reproduces this issue

https://github.com/jhnnxx/next-15-foxtrot

To Reproduce

  1. Start dev (yarn dev : "next dev --turbo")
  2. can't start next.js
  3. ▲ Next.js 15.2.2 (Turbopack)

✓ Starting...
FATAL: An unexpected Turbopack error occurred. Please report the content of /var/folders/v1/3fn16dv16559n3db2mjj5vjr0000gp/T/next-panic-db32d3be174de20fcd3e37b65674d012.log, along with a description of what you were doing when the error occurred, to https://github.com/vercel/next.js/issues/new?template=1.bug_report.yml
[Error [TurbopackInternalError]: Next.js package not found

Debug info:

  • Execution of get_entrypoints_with_issues_operation failed
  • Execution of EntrypointsOperation::new failed
  • Execution of Project::entrypoints failed
  • Execution of AppProject::routes failed
  • Execution of directory_tree_to_entrypoints_internal failed
  • Execution of directory_tree_to_loader_tree failed
  • Execution of get_next_package failed
  • Next.js package not found]
  1. I'm using yarn 4.7.0 and next.js 15.2.2

Current vs. Expected behavior

be executing my dev process.

Provide environment information

Binaries:
  node: 20.19.0
  yarn: 4.7.0
  next.js: 15.2.2

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

Turbopack

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

next dev (local)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.locked

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions