Skip to content

Errors in server compilation result in a 404 instead of showing the error overlay #24056

@timneutkens

Description

@timneutkens
Member

What version of Next.js are you using?

next@canary

What version of Node.js are you using?

latest

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying your application?

Does not affect this bug

Describe the Bug

Recently found an edge case where if the server compilation fails we'll render a 404 page instead of showing the error overlay. This is obviously not what we'd want. It was surfaced in rauchg's blog and I've opened a PR with a failing test here: #24054

Expected Behavior

The webpack error is surfaced instead of showing a 404 page

To Reproduce

A reproduction is provided as as failing test in #24054

Activity

added
bugIssue was opened via the bug report template.
and removed
bugIssue was opened via the bug report template.
on Apr 14, 2021
added this to the Iteration 19 milestone on Apr 14, 2021
self-assigned this
on Apr 16, 2021
added a commit that references this issue on Apr 22, 2021
6cd1c87
balazsorban44

balazsorban44 commented on Jan 28, 2022

@balazsorban44
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

locked as resolved and limited conversation to collaborators on Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @shuding@timneutkens@balazsorban44

    Issue actions

      Errors in server compilation result in a 404 instead of showing the error overlay · Issue #24056 · vercel/next.js