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

Chunks files not found after upgraded to 13.4.1x #54120

Closed
1 task done
hungcrush opened this issue Aug 16, 2023 · 21 comments
Closed
1 task done

Chunks files not found after upgraded to 13.4.1x #54120

hungcrush opened this issue Aug 16, 2023 · 21 comments
Labels
bug Issue was opened via the bug report template. locked

Comments

@hungcrush
Copy link

hungcrush commented Aug 16, 2023

Verify canary release

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

Provide environment information

Operating System:
      Platform: linux
      Arch: x64
      Version: #26~22.04.1-Ubuntu SMP Mon Apr 24 01:58:15 UTC 2023
    Binaries:
      Node: 18.16.1
      npm: 9.5.1
      Yarn: 1.22.19
      pnpm: N/A
    Relevant Packages:
      next: 13.4.16
      eslint-config-next: 13.4.16
      react: 18.2.0
      react-dom: 18.2.0
      typescript: N/A
    Next.js Config:
      output: N/A

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

No response

Link to the code that reproduces this issue or a replay of the bug

None

To Reproduce

git pull
yarn build

pm2 stop vf
pm2 delete vf

image

Describe the Bug

My chunks files in static/chunks/app/[locale]/.... not found ( I checked the file on server and they're exist. other files normal

ex:
/_next/static/chunks/app/%5Blocale%5D/layout-38b8ac0a0766c23e.js

image

Expected Behavior

None

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@hungcrush hungcrush added the bug Issue was opened via the bug report template. label Aug 16, 2023
@controversial
Copy link
Contributor

You didn’t provide any code for a reproduction, but try stopping your server, removing the .next folder, and then running next build && next start (or next dev) from there.

@hykelvinlee42
Copy link

I've been experiencing the same issue when deploying the project in a Nginx server (docker container).

@aXenDeveloper
Copy link

aXenDeveloper commented Aug 16, 2023

Yes, the same for me in docker container.

https://github.com/vercel/next.js/tree/canary/examples/with-docker
Example for docker also not working.

@hungcrush
Copy link
Author

You didn’t provide any code for a reproduction, but try stopping your server, removing the .next folder, and then running next build && next start (or next dev) from there.

I tried it. But it same :(
It only happens on [locale] folder: app/[locale]/....

Do you have any ideas for it?

@hykelvinlee42
Copy link

Issue #54008 described the same and provided a reproducible example.

@Baukaalm
Copy link
Contributor

I have the same issue, described it here #54133 (comment).

@Baukaalm
Copy link
Contributor

Baukaalm commented Aug 18, 2023

Can you show links or router.push configs with that paths?
Maybe you send asPath incorrect

@hungcrush
Copy link
Author

Can you show links or router.push configs with that paths? Maybe you send asPath incorrect

No this is static files. they're in .next folder

@bryceAebi
Copy link

I'm experiencing a similar issue, though it only manifests when I test my site via Google Search Console.

Do folks know which version I can downgrade to to solve this error? Is it 13.4.9?

@hungcrush
Copy link
Author

hungcrush commented Aug 20, 2023

I'm experiencing a similar issue, though it only manifests when I test my site via Google Search Console.

Do folks know which version I can downgrade to to solve this error? Is it 13.4.9?

Yes. After I downgraded to 13.4.9 it works well...

@bryceAebi
Copy link

bryceAebi commented Aug 20, 2023

Perhaps my issue is not the same. My only affected routes are the dynamic routes and the error looks the same, but the chunks that are sometimes missing are not those from the [slug] directory. (13.4.9 does not solve the issue for me)

@MarceloBD
Copy link

Same problem here with next 13.4.19, chunks are created but they are not found

@Refrezsh
Copy link

Refrezsh commented Aug 22, 2023

Same problem with using Nginx as reverse, all works fine on Next 13.4.12.

@shehi
Copy link

shehi commented Aug 24, 2023

This is the same as #54008 .

@picspirit
Copy link

picspirit commented Sep 8, 2023

I've been experiencing the same issue. Debian, Nginx, PM2.
If visite the app by http://ip:3000, there would be no problem.
But if I visit the domain, got the same issure.
nextjs's version: 13.4.19.

@hungcrush
Copy link
Author

It's fixed by remove slash '/' end of link on nginx config.
Thank you.

@MarceloBD
Copy link

But this is still a bug in nextjs as I am having this on Windows and not running nginx

@shehi
Copy link

shehi commented Sep 13, 2023 via email

@MarceloBD
Copy link

You mean on my machine? I am running on localhost

@alexrabin
Copy link

alexrabin commented Sep 20, 2023

This should still be open. 13.5.1 still has this issue with IIS

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

This closed issue has been automatically locked because it had no new activity for 2 weeks. 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 added the locked label Oct 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 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. locked
Projects
None yet
Development

No branches or pull requests