Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to copy traced files" warning in output standalone when using appDir under a router group #43783

Closed
1 task done
ludusrusso opened this issue Dec 6, 2022 · 3 comments
Labels
bug Issue was opened via the bug report template.

Comments

@ludusrusso
Copy link

ludusrusso commented Dec 6, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000
Binaries:
  Node: 16.14.0
  npm: 8.3.1
  Yarn: 1.22.17
  pnpm: N/A
Relevant packages:
  next: 13.0.7-canary.1
  eslint-config-next: 13.0.6
  react: 18.2.0
  react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true), Standalone mode (output: "standalone")

Link to the code that reproduces this issue

https://github.com/ludusrusso/next-fail-output-standalone-build-app-dir

To Reproduce

run npm run build in the example code

Describe the Bug

When using output standalone with appDir, pages under router groups generates this warning:

warn  - Failed to copy traced files for /Users/ludusrusso/develop/github.com/ludusrusso/next-fail-output-standalone-build-app-dir/.next/server/app/test/page.js [Error: ENOENT: no such file or directory, open '/Users/ludusrusso/develop/github.com/ludusrusso/next-fail-output-standalone-build-app-dir/.next/server/app/test/page.js.nft.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/ludusrusso/develop/github.com/ludusrusso/next-fail-output-standalone-build-app-dir/.next/server/app/test/page.js.nft.json'
}

Anyway, the file is present in the standalone build in the correct place and the page works correcly.

Screenshot 2022-12-06 alle 18 44 15

Expected Behavior

The warning should disappear.

I think that there is an error in the path copy, it should be (in the example)

.next/server/app/(test)/test/page.js.nft.json'

instead of

.next/server/app/test/page.js.nft.json'

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@ludusrusso ludusrusso added the bug Issue was opened via the bug report template. label Dec 6, 2022
@ludusrusso ludusrusso changed the title "Failed to copy traced files" in output standalone when using appDir under a router group "Failed to copy traced files" warning in output standalone when using appDir under a router group Dec 6, 2022
@ithan
Copy link

ithan commented Dec 13, 2022

Having the same issue here, did you manage to find some solution for this?

@ijjk
Copy link
Member

ijjk commented Dec 13, 2022

Hi, this should be fixed in #43746 which is available in v13.0.7-canary.6, please update and give it a try!

@ijjk ijjk closed this as completed Dec 13, 2022
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants