Skip to content

Compilation error upgrading to 13.0.0 #150

Answered by ChristianMurphy
awwsmm asked this question in Q&A
Discussion options

You must be logged in to vote

@awwsmm that goes back to @wooorm's original message.
In unified 11 (and rehype 13) the types were made stronger.
Not all plugins have been updated to match yet (unifiedjs/unified#228, unifiedjs/unified#227)
There are several hundred plugins being upgraded, it will take a bit for the upgrade to make its way through the ecosystem.

For now you can either:

  • use a ts expect error annotation
  • hold on rehype 12 until the plugins you use have their typings updated

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ChristianMurphy
Comment options

@wooorm
Comment options

@awwsmm
Comment options

@ChristianMurphy
Comment options

Answer selected by awwsmm
@awwsmm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants