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)
Problem
The Shiki version filter
^0.11.1
does not match any Shiki version other than0.11.1
(See here for more info), which contradictsSolution
Change the Shiki version filter to
>=0.11.1
(I've tested this with Shiki0.14.1
)Workaround
Add the below to your
package.json
:Note: see here for more info.