Skip to content

[Twoslash] All themes are broken on Vue SFC #1053

@victorgarciaesgi

Description

@victorgarciaesgi

Validations

Describe the bug

Hi!

Just noticed a problem with Twoslash theming recently. The syntax highlightning seems to be broken and just stays white.

It happened when upgrading postcss and sass to their latest version. Reverting the versions fixed the problem

 "postcss": "8.5.3",
 "sass": "1.86.0",

Vue SFC problem

Even with this fixed versions, there is still a problem with Vue SFC component highlights.

Reproduction will be simple as it's also happening on your website

Image

Just in case, you can look at my docs also to reproduce: https://github.com/victorgarciaesgi/regle

  • pnpm i
  • pnpm run docs:dev

Reproduction

https://github.com/shikijs/shiki/tree/main/docs

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions