You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the svelte compiler throws an error, e.g., an 'unclosed-element' error in the template file, it exists the cayo CLI entirely. It'd be nice if this just let the user know, but kept the server running and continue watching the files.
I think the fix will be something like wrapping the import(...) statements in cayo.js for the template, pages, and cayo components in a try...catch as well as adding some try...catch stuff to renderer and prerender. I fiddled around with it and got it to successfully catch the example error above in the template file, but then there was uncaught errors in renderer (as expected, since template would be undefined if it can't be compiled).
The text was updated successfully, but these errors were encountered:
When the svelte compiler throws an error, e.g., an
'unclosed-element'
error in the template file, it exists the cayo CLI entirely. It'd be nice if this just let the user know, but kept the server running and continue watching the files.I think the fix will be something like wrapping the
import(...)
statements in cayo.js for the template, pages, and cayo components in atry...catch
as well as adding sometry...catch
stuff to renderer and prerender. I fiddled around with it and got it to successfully catch the example error above in the template file, but then there was uncaught errors in renderer (as expected, since template would be undefined if it can't be compiled).The text was updated successfully, but these errors were encountered: