Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssrFixStacktrace causes server to crash on some errors #43

Open
joprice opened this issue Jun 20, 2024 · 0 comments
Open

ssrFixStacktrace causes server to crash on some errors #43

joprice opened this issue Jun 20, 2024 · 0 comments

Comments

@joprice
Copy link

joprice commented Jun 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant