Replies: 1 comment 4 replies
-
|
We had a similar issue before. The reason was that Cloudflare had cached a 404 response for one of the chunks. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We Are facing this chunk load error mostly for US users for all other users our app is loading for us fine. and we are not able to reproduce this in local. We are tracing this error through posthog

"ChunkLoadError\n at s.f.j (https://appname/_next/static/chunks/webpack-e753088ed470abe6.js:1:4917)\n at https://appname/_next/static/chunks/webpack-e753088ed470abe6.js:1:1793\n at Array.reduce ()\n at s.e (https://appname/_next/static/chunks/webpack-e753088ed470abe6.js:1:1759)\n at ea.loadableGenerated.webpack [as loader] (https://appname/_next/static/chunks/app/(appname)/(appname)/%5B...slug%5D/page-50441dc09a9f4a0b.js:1:51527)\n at https://appname/_next/static/chunks/vendors-2ac4632b-17de9aefc5f25a6c.js:2:18232\n at D (https://appname/_next/static/chunks/vendors-27161c75-6712d5e2638a4df3.js:1:44280)\n at iZ (https://appname/_next/static/chunks/fd9d1056-d3681e33b18e1c49.js:1:117888)\n at ia (https://appname/_next/static/chunks/fd9d1056-d3681e33b18e1c49.js:1:95552)\n at https://appname/_next/static/chunks/fd9d1056-d3681e33b18e1c49.js:1:95374\n at il (https://appname/_next/static/chunks/fd9d1056-d3681e33b18e1c49.js:1:95381)\n at oZ (https://appname/_next/static/chunks/fd9d1056-d3681e33b18e1c49.js:1:91596)\n at MessagePort.O (https://appname/_next/static/chunks/vendors-27161c75-6712d5e2638a4df3.js:1:26560)\nEnd of stack for Error object"
Our Infrastructure
Framework: Next.js
Hosting: AWS EC2
Proxy/CDN: Cloudflare with Loadbalancing. have instances in both us and ind
Deployment: We build locally/CI and deploy the artifacts to EC2, restarting PM2.
Our nextconfig
Our package.json
Let me know if you need more info in the comments. Help appreciated.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions