Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Debugs runtime-bundle and module-resolution regressions in Next.js using CI env mirroring, route traces, and webpack stats diffing.
43% 96%+52 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 10 of 23 without it.
3 of 3 safety checks passed
Not used yet
Use this skill when reproducing runtime-bundle, module-resolution, or user-bundle inclusion regressions.
IS_WEBPACK_TEST=1 forces webpack (turbopack is default), NEXT_SKIP_ISOLATE=1 skips packing next.js.NEXT_SKIP_ISOLATE=1.Set __NEXT_SHOW_IGNORE_LISTED=true to disable the ignore-list filtering in dev server error output. By default, Next.js collapses internal frames to at ignore-listed frames, which hides useful context when debugging framework internals. Defined in packages/next/src/server/patch-error-inspect.ts.
When user next build starts bundling internal Node-only helpers unexpectedly:
.next/server/.../page.js.nft.json).next/dist/server/stream-utils/node-stream-helpers.js, node:stream/promises).test-start-webpack assertion that reads the route trace and traced server chunks, and fails on forbidden internals. This validates user-project bundling (not publish-time runtime bundling).To prove what user bundling includes, emit webpack stats from the app's next.config.js:
// next.config.js
module.exports = {
webpack(config) {
config.profile = true
return config
},
}
Then use stats.toJson({ modules: true, chunks: true, reasons: true }) and diff webpack-stats-server.json between modes. This gives concrete inclusion reasons (e.g. which module required node:stream/promises) and is more reliable than analyzer HTML alone.
Next to this one in the catalogue, plus more from the same author.