marko-js / examples

55 stars 36 forks source link

ssrFixStacktrace causes server to crash on some errors #43

Open joprice opened 5 months ago

joprice commented 5 months ago

Certain errors such as ReferenceError cause the dev server to crash with the error Error:linemust 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.