Skip to content

failed to copy traced files #87811

@xsawn

Description

@xsawn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutputRelated to the the output configuration option.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions