diff --git a/packages/next/taskfile.js b/packages/next/taskfile.js index 77debab26fe63..c47ef9ed019fa 100644 --- a/packages/next/taskfile.js +++ b/packages/next/taskfile.js @@ -2230,7 +2230,11 @@ export async function pages_app(task, opts) { export async function pages_error(task, opts) { await task .source('pages/_error.tsx') - .swc('client', { dev: opts.dev, keepImportAssertions: true }) + .swc('client', { + dev: opts.dev, + keepImportAssertions: true, + interopClientDefaultExport: true, + }) .target('dist/pages') }