diff --git a/packages/next/src/client/components/react-dev-overlay/server/middleware-turbopack.ts b/packages/next/src/client/components/react-dev-overlay/server/middleware-turbopack.ts index 307331db245fd..d33123342c8ee 100644 --- a/packages/next/src/client/components/react-dev-overlay/server/middleware-turbopack.ts +++ b/packages/next/src/client/components/react-dev-overlay/server/middleware-turbopack.ts @@ -169,6 +169,10 @@ export function getSourceMapMiddleware(project: Project, distDir: string) { return badRequest(res) } + if (filename.startsWith('webpack://next/')) { + return noContent(res) + } + try { if (filename.startsWith('/_next/static')) { filename = path.join(