Skip to content

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

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)

Activity

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

    bugSomething isn't workingquestionFurther information is requestedtwoslashexpressive-code-twoslash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions