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

ChunkLoadError on production build #56130

Closed
1 task
amit548 opened this issue Sep 28, 2023 · 5 comments
Closed
1 task

ChunkLoadError on production build #56130

amit548 opened this issue Sep 28, 2023 · 5 comments
Labels
bug Issue was opened via the bug report template. locked Navigation Related to Next.js linking (e.g., <Link>) and navigation.

Comments

@amit548
Copy link

amit548 commented Sep 28, 2023

Link to the code that reproduces this issue

https://github.com/adrianhajdin/project_next_13_ai_prompt_sharing

To Reproduce

  1. Build next js(13.5.3) application for production
  2. Start the app using npm run start
  3. Browsing the website for sometime
  4. Suddenly ChunkLoadError appear on the console and whole website is crashed
  5. After restart the server errors are automatically fixed
  6. It happens every time(loop)

Current vs. Expected behavior

ChunkLoadError should not happen.

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: #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023
Binaries:
  Node: 18.17.1
  npm: 9.6.7
  Yarn: N/A
  pnpm: 8.7.6
Relevant Packages:
  next: 13.5.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A

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

Not sure, App Router, Routing (next/router, next/navigation, next/link)

Additional context

I deployed next.js production app on Ubuntu, after deploying it worked as expected but sometime later app automatically throw some ChunkLoadError on the console not sure why
IMG_20230928_110523_455
IMG_20230928_110553_559

@amit548 amit548 added the bug Issue was opened via the bug report template. label Sep 28, 2023
@github-actions github-actions bot added the Navigation Related to Next.js linking (e.g., <Link>) and navigation. label Sep 28, 2023
@domosedov
Copy link

same problem

@schimi-dev
Copy link

Related to #55697 #55624

@poorscousertommy8
Copy link

The developers of Next.js are currently looking at the problem. Please continue to monitor here #54008 (a next developer has reported there).

@balazsorban44
Copy link
Member

There is an issue opened for this at #54008 so closing in favor. Please post your reproduction there, but note that the repository linked has a 4-month-old Next.js version. Make sure to test it with next@canary before posting. Also, try to minimize the reproduction as much as possible (is mongoose really necessary to reproduce the issue?).

if relevant, please post your reply to #54008, thanks!

@github-actions
Copy link
Contributor

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 locked as resolved and limited conversation to collaborators Oct 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. locked Navigation Related to Next.js linking (e.g., <Link>) and navigation.
Projects
None yet
Development

No branches or pull requests

5 participants