Skip to content

[Bug]: LazyCompilation causes ENAMETOOLONG #12649

@kwonoj

Description

@kwonoj

System Info

System:
OS: macOS 26.2
CPU: (12) arm64 Apple M3 Pro
Memory: 189.67 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - /Users/ohjoong.kwon/.proto/tools/node/20.15.1/bin/node
Yarn: 4.5.1 - /Users/ohjoong.kwon/.proto/shims/yarn
npm: 10.7.0 - /Users/ohjoong.kwon/.proto/tools/node/20.15.1/bin/npm
pnpm: 10.4.0 - /Users/ohjoong.kwon/.proto/shims/pnpm
Browsers:
Chrome: 143.0.7499.170
Safari: 26.2
npmPackages:
@rspack/cli: ^1.7.1 => 1.7.1
@rspack/core: ^1.7.1 => 1.7.1
@rspack/plugin-react-refresh: ^1.5.3 => 1.5.3

Details

With latest rspack which enables lazy compilation by default, some deeply nested path can cause ENAMETOOLONG error for the url.

It is possible to workaround by disabling lazy compilation but there's no way to opt in.

Reproduce link

https://github.com/kwonoj/lazy-uri-long-repro

Reproduce Steps

Clone / npm run dev.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions