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
{{ message }}
Repository navigation
citry preview fails for a component with Events (Vue compile error at <!doctype>) #580
Previewing a component that uses Events with citry preview fails. The preview page doesn't render, and the error is a Vue compile error pointing at the page's <!doctype>. It happens on Citry 0.6.0 and on current main.
Steps to reproduce
Write a component with an Events handler and a preview for it.
Run citry preview serve and open that component's preview.
The page fails with a Vue compile error at <!doctype>.
Expected
The preview renders, and the component's Events work as they do in an app.
Notes
The preview page probably hands the whole document, doctype included, to the Vue compiler when the component needs Events. Components without Events preview fine.
Activity
fix(vue): compile only the body of a page template nested in another …