nextjs - ✅(Solved) Fix failed to copy traced files [1 pull requests, 4 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#87811Fetched 2026-04-08 02:06:06
View on GitHub
Comments
4
Participants
4
Timeline
11
Reactions
0
Author
Timeline (top)
commented ×4labeled ×3closed ×1cross-referenced ×1

Error Message

error info: ⚠ Failed to copy traced files for D:\a\d\dist\server\app\api\chat\route.js Error: EINVAL: invalid argument, copyfile 'D:\a\d\dist\server\chunks[externals]node:async_hooks_b485b2a4..js' -> 'D:\a\d\dist\standalone\dist\server\chunks[externals]node:async_hooks_b485b2a4..js'

Fix Action

Fixed

PR fix notes

PR #88273: Turbopack: escape colon in output names

Description (problem / solution / changelog)

Closes https://github.com/vercel/next.js/issues/87811

It causes problems on some filesystems, apparently.

Error: EINVAL: invalid argument, copyfile
'C:\plat\nf\.next\server\chunks\ssr\[externals]_node:buffer_00e2e67a._.js'
->
'C:\plat\nf\.next\standalone\.next\server\chunks\ssr\[externals]_node:buffer_00e2e67a._.js'

Changed files

  • turbopack/crates/turbopack-core/src/ident.rs (modified, +35/-4)

Code Example

windows
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/example/sorry

To Reproduce

build output standalone

Current vs. Expected behavior

I found that the main problem is the name of the file has a ":" symbol, Result fs copy method failed

The follow name is not correct in Windows

"D:\a\d\dist\server\chunks[externals]node:async_hooks_b485b2a4..js'"

error info:

⚠ Failed to copy traced files for D:\a\d\dist\server\app\api\chat\route.js Error: EINVAL: invalid argument, copyfile 'D:\a\d\dist\server\chunks[externals]node:async_hooks_b485b2a4..js' -> 'D:\a\d\dist\standalone\dist\server\chunks[externals]node:async_hooks_b485b2a4..js' at ignore-listed frames { errno: -4071, code: 'EINVAL', syscall: 'copyfile', path: 'D:\a\d\dist\server\chunks\[externals]node:async_hooks_b485b2a4..js', dest: 'D:\a\d\dist\standalone\dist\server\chunks\[externals]node:async_hooks_b485b2a4..js'
}

Provide environment information

windows

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

Output

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

next build (local)

Additional context

No response

extent analysis

TL;DR

  • Remove or replace the colon (:) symbol from the file name to resolve the copy file error.

Guidance

  • Verify that the issue is indeed caused by the colon (:) symbol in the file name by attempting to copy a file with a similar name but without the colon.
  • Check the code that generates the file name to see if it can be modified to avoid using the colon symbol.
  • Consider using a different character or encoding to represent the colon symbol in the file name, if it is necessary for the application's functionality.
  • Test the application on a different operating system, such as Linux or macOS, to see if the issue is specific to Windows.

Example

  • No code snippet is provided as the issue does not imply a specific code change.

Notes

  • The issue seems to be specific to Windows, as the colon symbol is not allowed in file names on this operating system.
  • The solution may require changes to the code that generates the file name or the use of a different character or encoding.

Recommendation

  • Apply workaround: Remove or replace the colon (:) symbol from the file name, as this is a simple and effective solution to resolve the copy file error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - ✅(Solved) Fix failed to copy traced files [1 pull requests, 4 comments, 4 participants]