From 6632c10275d2c1daa4a6e23580f4f4d6b6d008a7 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sun, 4 May 2025 20:29:03 +0200 Subject: [PATCH 1/2] docs(cloudflare): turbopack builds are not suported --- pages/cloudflare/troubleshooting.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pages/cloudflare/troubleshooting.mdx b/pages/cloudflare/troubleshooting.mdx index 6628daf..a05c87d 100644 --- a/pages/cloudflare/troubleshooting.mdx +++ b/pages/cloudflare/troubleshooting.mdx @@ -86,3 +86,20 @@ export async function GET() { return new Response(JSON.stringify(await client`SELECT * FROM users;`)); } ``` + +### `Error: Failed to load chunk server/chunks/ssr/.js` + +If you see an error similar to: + +```text +✘ [ERROR] ⨯ Error: Failed to load chunk server/chunks/ssr/[root-of-the-server]__77c027b2._.js + + at loadChunkPath + (...) + at Object.loadChunk + (...) + at .open-next/server-functions/default/.next/server/app/page.js +``` + +You are proably using a turbopack enabled build (`next build --turbo`) which is not currently supported by OpenNext. +Change your build command to `next build` to fix the issue. From 8f6cd7e04eb012b5151cd27382750b4121523f55 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sun, 4 May 2025 20:30:18 +0200 Subject: [PATCH 2/2] fixup! --- pages/cloudflare/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cloudflare/troubleshooting.mdx b/pages/cloudflare/troubleshooting.mdx index a05c87d..8baac43 100644 --- a/pages/cloudflare/troubleshooting.mdx +++ b/pages/cloudflare/troubleshooting.mdx @@ -92,7 +92,7 @@ export async function GET() { If you see an error similar to: ```text -✘ [ERROR] ⨯ Error: Failed to load chunk server/chunks/ssr/[root-of-the-server]__77c027b2._.js +✘ [ERROR] ⨯ Error: Failed to load chunk server/chunks/ssr/.js at loadChunkPath (...)