这是indexloc提供的服务,不要输入任何密码
Skip to content

Turbopack production error: Module X was instantiated because it was required from module X, but the module factory is not available. #86132

@MisterJimson

Description

@MisterJimson

Link to the code that reproduces this issue

https://github.com/MisterJimson/turbo-bug-report

To Reproduce

  1. Run pnpm build && pnpm start
  2. Visit /

Current vs. Expected behavior

Current: crash/500 with error::

Error: Failed to collect configuration for /
    at ignore-listed frames {
  [cause]: Error: Module 28932 was instantiated because it was required from module 33290, but the module factory is not available.
      at instantiateModule (.next/server/chunks/ssr/[turbopack]_runtime.js:707:15)
      at getOrInstantiateModuleFromParent (.next/server/chunks/ssr/[turbopack]_runtime.js:738:12)
      at Context.esmImport [as i] (.next/server/chunks/ssr/[turbopack]_runtime.js:228:20)
      at module evaluation (.next/server/chunks/ssr/[root-of-the-server]__8023723c._.js:1:755)
      at instantiateModule (.next/server/chunks/ssr/[turbopack]_runtime.js:715:9)
      at getOrInstantiateModuleFromParent (.next/server/chunks/ssr/[turbopack]_runtime.js:738:12)
      at Context.esmImport [as i] (.next/server/chunks/ssr/[turbopack]_runtime.js:228:20)
      at module evaluation (.next/server/chunks/ssr/[root-of-the-server]__aa0032af._.js:1:268)
      at instantiateModule (.next/server/chunks/ssr/[turbopack]_runtime.js:715:9)
      at getOrInstantiateModuleFromParent (.next/server/chunks/ssr/[turbopack]_runtime.js:738:12)
}

Expected: no crash, 200 http response, renders page

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:28:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 11
Binaries:
  Node: 22.15.0
  npm: 10.9.2
  Yarn: 1.22.22
  pnpm: 9.15.9
Relevant Packages:
  next: 16.0.3 // Latest available version is detected (16.0.3).
  eslint-config-next: N/A
  react: 19.2.0
  react-dom: 19.2.0
  typescript: 5.9.3
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 start (local)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions