Skip to content

ssrFixStacktrace causes server to crash on some errors #43

@joprice

Description

@joprice

Certain errors such as ReferenceError cause the dev server to crash with the error Error: line must be greater than 0 (lines start at line 1). This can be reproduced by for instance going to a file like src/components/app-button/index.marko and commenting out an input // size = "normal", which results in the error ReferenceError: size is not defined. Since this is a common error to expect during development, I would expect the dev server not to crash. It seems that vite is finding an unexpected empty stacktrace element in the above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions