Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiki Version Must Exactly Match #9

Open
Wakeful-Cloud opened this issue Mar 22, 2023 · 0 comments
Open

Shiki Version Must Exactly Match #9

Wakeful-Cloud opened this issue Mar 22, 2023 · 0 comments

Comments

@Wakeful-Cloud
Copy link

Problem

The Shiki version filter ^0.11.1 does not match any Shiki version other than 0.11.1 (See here for more info), which contradicts

Shiki is declared as a peerDependency, so @leafac/rehype-shiki doesn’t have to be updated when new versions of Shiki are released (as long as Shiki’s API remain compatible). See rsclarke/rehype-shiki#48 rsclarke/rehype-shiki#46 rsclarke/rehype-shiki#47 rsclarke/rehype-shiki#2.

Solution

Change the Shiki version filter to >=0.11.1 (I've tested this with Shiki 0.14.1)

Workaround

Add the below to your package.json:

"overrides": {
  "@leafac/rehype-shiki": {
    "shiki": ">=0.11.1"
  }
}

Note: see here for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant