Skip to content

Argument of type 'Root' is not assignable to parameter of type 'Node<Data>' #129

Discussion options

You must be logged in to vote

Hey @dmca-glasgow 👋
That error looks a lot like you may be mixing major versions of unist-util-visit and @types/mdast.
Make sure are both on the latest major version, at the time of writing these are @types/mdast v4 and unist-util-visit v5.

https://stackblitz.com/edit/github-4yca6z?file=src%2Fmain.ts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmca-glasgow
Comment options

Answer selected by dmca-glasgow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
☂️ area/types This affects typings
2 participants