Skip to content

Commit 3f30e26

Browse files
fix: apply default export interop to next/error (vercel#43238)
Applies the same interop as we did for `next/jest` in vercel#36824 We could potentially apply the same for other submodules, or do it on the basis of someone hitting the issue. Fixes vercel#43206 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
1 parent 0caf800 commit 3f30e26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: packages/next/taskfile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,11 @@ export async function pages_app(task, opts) {
22302230
export async function pages_error(task, opts) {
22312231
await task
22322232
.source('pages/_error.tsx')
2233-
.swc('client', { dev: opts.dev, keepImportAssertions: true })
2233+
.swc('client', {
2234+
dev: opts.dev,
2235+
keepImportAssertions: true,
2236+
interopClientDefaultExport: true,
2237+
})
22342238
.target('dist/pages')
22352239
}
22362240

0 commit comments

Comments
 (0)