Skip to content

Commit

Permalink
fix: apply default export interop to next/error (#43238)
Browse files Browse the repository at this point in the history
Applies the same interop as we did for `next/jest` in #36824

We could potentially apply the same for other submodules, or do it on
the basis of someone hitting the issue.

Fixes #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)
  • Loading branch information
balazsorban44 authored Nov 23, 2022
1 parent 0caf800 commit 3f30e26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit 3f30e26

Please sign in to comment.