l3montree-dev / l3montree-dev/devguard

Homepage fails for Googlebot: stale JS chunk no longer exists after deployment

Open
#2,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug component/devguard-web priority:high
Dominant language
Go
Stars
161
Forks
43
Avg merge
1d 8h
Merged PRs (30d)
37

Description

Error

ChunkLoadError: Failed to load chunk /_next/static/chunks/2h5_roi10jupk.js from module 964893

Stack trace

entry (turbopack/browser/runtime/base/runtime-base.ts:233)

Source (turbopack/browser/runtime/base/runtime-base.ts:228-238)

          invariant(
            sourceType,
            (sourceType) => `Unknown source type: ${sourceType}`
          )
      }
      let error = new Error(
        `Failed to load chunk ${chunkUrl} ${loadReason}${
          cause ? `: ${cause}` : ''
        }`,
        cause ? { cause } : undefined
      )

Request context

  • URL: https://main.devguard.org/
  • Culprit: entry(chunks/turbopack-26bafpkzoigym)
  • User agent: Googlebot 2.1 crawler
  • Classic stale-build issue: the crawler loaded an HTML page referencing chunk 2h5_roi10jupk.js, but by the time it requested that chunk the build had moved on (new deployment replaced static assets), so the file no longer exists at that path. Not an app logic bug — a side effect of rolling deploys invalidating old chunk hashes while old page references are still being crawled/cached.

GlitchTip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at turbopack/browser/runtime/base/runtime-base.ts:228-238 and inspect how rolling deployments serve HTML and static chunks. Use the reported homepage, stale chunk name, and Googlebot context to trace the failure between page load and chunk retrieval. Done means delayed or cached page requests no longer produce this missing-chunk failure, with a regression check if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
build-system, devops, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.