Skip to content

citry preview fails for a component with Events (Vue compile error at <!doctype>) #580

Closed

Description

@JuroOravec

Problem

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

  1. Write a component with an Events handler and a preview for it.
  2. Run citry preview serve and open that component's preview.
  3. 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

  1. added
    bug
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 14, 2026
    8e3de07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions