Skip to content

(Twoslash) Compilation errors are silent and cause entire file to fail to render #49

@ethanniser

Description

@ethanniser

Thank you for making this package- it is super useful

However I find it really hard to use as if there is any sort of compilation error, nothing is logged out and the entire page I'm working on immediately goes blank

I would except some kind of error message to help debug the issue, as well as for this to prevent builds from successfully completing

Reproduction Steps

  1. Clone https://github.com/ethanniser/ec-twoslash-issue-repro.git
  2. Run bun i then bun run dev
  3. Go to http://localhost:4321/blog/example/
  4. Observe twoslash working
  5. Uncomment commented lines in src/content/blog/example.md
  6. Observe whole page go blank
  7. Run bun run build
  8. Observe build succeed without error
  9. Look at dist and see that build output is also blank (like dev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtwoslashexpressive-code-twoslash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions