Skip to content

[Turbopack 15.4] Vc<FileSystemPath>("").join("../R:\test\apps\web") leaves the filesystem root #81628

@PAXANDDOS

Description

@PAXANDDOS

Link to the code that reproduces this issue

https://github.com/PAXANDDOS/nextjs-canary-turbo-reproduction

To Reproduce

If using the provided reproduction repository, skip to number 5.

  1. Start with the template: bunx create-turbo@latest --example basic (or npm/pnpm alternative)
  2. Go to apps/docs/package.json and apps/web/package.json, edit next version to be 15.4.1
  3. Run bun update to update to these versions
  4. Add turbopack.root configuration option to point to the monorepo root
  5. Run bun dev
  6. Go to localhost:3000 or localhost:3001
  7. See the error in the terminal

Current vs. Expected behavior

Current behaviour

The webpage shows Internal Server Error and a huge error logged to the terminal:

web:dev:  ✓ Ready in 949ms
web:dev:  ✓ Compiled /_not-found/page in 3ms
web:dev:  ⨯ [Error [TurbopackInternalError]: Failed to write app endpoint /_not-found/page
web:dev:
web:dev: Caused by:
web:dev: - FileSystemPath("").join("../R:\test\apps\web") leaves the filesystem root
web:dev:
web:dev: Debug info:
web:dev: - Execution of TaskId { id: 2147483653 } transient failed
web:dev: - Execution of get_written_endpoint_with_issues_operation failed
web:dev: - Execution of endpoint_write_to_disk failed
web:dev: - Execution of <AppEndpoint as Endpoint>::output failed
web:dev: - Failed to write app endpoint /_not-found/page
web:dev: - Execution of AppEndpoint::output failed
web:dev: - Execution of AppEndpoint::app_page_entry failed
web:dev: - Execution of *get_app_page_entry failed
web:dev: - Execution of AppProject::rsc_module_context failed
web:dev: - Execution of *ModuleAssetContext::new failed
web:dev: - Execution of *AppProject::get_rsc_transitions failed
web:dev: - Execution of AppProject::ecmascript_client_reference_transition failed
web:dev: - Execution of *NextEcmascriptClientReferenceTransition::new failed
web:dev: - Execution of AppProject::client_transition failed
web:dev:  ✓ Compiled /_error in 2ms
web:dev: - Execution of *FullContextTransition::new failed
web:dev: - Execution of AppProject::client_module_context failed
web:dev: - Execution of *ModuleAssetContext::new failed
web:dev: - Execution of AppProject::client_module_options_context failed
web:dev: - Execution of *get_client_module_options_context failed
web:dev: - Execution of Project::execution_context failed
web:dev: - Execution of Project::node_root failed
web:dev: - FileSystemPath("").join("../R:\test\apps\web") leaves the filesystem root]
web:dev: [Error [TurbopackInternalError]: Failed to write page endpoint /_app
web:dev:
web:dev: Caused by:
web:dev: - content is not available as task execution failed
web:dev: - content is not available as task execution failed
web:dev: - FileSystemPath("").join("../R:\test\apps\web") leaves the filesystem root
web:dev:
web:dev: Debug info:
web:dev: - Execution of TaskId { id: 2147483654 } transient failed
web:dev: - Execution of get_written_endpoint_with_issues_operation failed
web:dev: - Execution of endpoint_write_to_disk failed
web:dev: - Execution of <PageEndpoint as Endpoint>::output failed
web:dev: - Failed to write page endpoint /_app
web:dev: - Execution of PageEndpoint::output failed
web:dev: - Execution of PageEndpoint::client_chunks failed
web:dev: - Execution of PageEndpoint::client_evaluatable_assets failed
web:dev: - content is not available as task execution failed
web:dev: - Execution of PageEndpoint::client_module failed
web:dev: - content is not available as task execution failed
web:dev: - Execution of *create_page_loader_entry_module failed
web:dev: - Execution of PagesProject::client_module_context failed
web:dev: - Execution of *ModuleAssetContext::new failed
web:dev: - Execution of PagesProject::client_module_options_context failed
web:dev: - Execution of *get_client_module_options_context failed
web:dev: - Execution of Project::execution_context failed
web:dev: - Execution of Project::node_root failed
web:dev: - FileSystemPath("").join("../R:\test\apps\web") leaves the filesystem root]
...
web:dev:  ✓ Compiled /favicon.ico in 0ms

Expected behaviour

Template runs successfully, pages are rendered, terminal has no errors.

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32681
  Available CPU cores: 16
Binaries:
  Node: 24.4.0
  npm: 11.4.2
  Yarn: N/A
  pnpm: N/A
  bun: 1.2.18
Relevant Packages:
  next: 15.4.1 // Latest available version is detected (15.4.1).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.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 dev (local), next build (local)

Additional context

Originally posted by @terrymun in #80750.

Important notes:

Affected versions

  • Stable: 15.4.0, 15.4.1, 15.4.2
  • Canary: 15.4.0-canary.89 through 15.4.0-canary.130, 15.4.2-canary.0 through 15.4.2-canary.8
  • Latest working version: 15.4.0-canary.88

PACK-5071

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy