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

Issue with rehype-raw v7.0.0 #765

Closed
4 tasks done
lewiswolf opened this issue Aug 31, 2023 · 6 comments
Closed
4 tasks done

Issue with rehype-raw v7.0.0 #765

lewiswolf opened this issue Aug 31, 2023 · 6 comments
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@lewiswolf
Copy link

Initial checklist

Affected packages and versions

8.0.7

Link to runnable example

No response

Steps to reproduce

Update to rehype-raw v7.0.0

Expected behavior

Previous versions did not have this type error.

Actual behavior

error TS2322: Type '(options?: Options | null | undefined) => (tree: Root, file: VFile) => Root' is not assignable to type 'Pluggable<any[]>'.
  Type '(options?: Options | null | undefined) => (tree: Root, file: VFile) => Root' is not assignable to type 'Plugin<any[], any, any>'.
    Type '(tree: Root, file: VFile) => Root' is not assignable to type 'void | Transformer<any, any>'.
      Type '(tree: Root, file: VFile) => Root' is not assignable to type 'Transformer<any, any>'.
        Types of parameters 'file' and 'file' are incompatible.
          Type 'import("/Users/lewiswolstanholme/Desktop/lewiswolstanholme/node_modules/vfile/lib/index").VFile' is not assignable to type 'import("/Users/lewiswolstanholme/Desktop/lewiswolstanholme/node_modules/hast-util-raw/node_modules/vfile/lib/index").VFile'.
            Types of property 'messages' are incompatible.
              Type 'import("/Users/lewiswolstanholme/Desktop/lewiswolstanholme/node_modules/vfile-message/lib/index").VFileMessage[]' is not assignable to type 'import("/Users/lewiswolstanholme/Desktop/lewiswolstanholme/node_modules/hast-util-raw/node_modules/vfile-message/lib/index").VFileMessage[]'.
                Type 'VFileMessage' is missing the following properties from type 'VFileMessage': ancestors, place

rehypePlugins={[rehypeRaw]}

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Aug 31, 2023
@ChristianMurphy
Copy link
Member

Duplicate of #763 and unifiedjs/unified#228

@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
@github-actions

This comment has been minimized.

@github-actions
Copy link

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks,
— bb

@ChristianMurphy
Copy link
Member

The type updates are making their way through several hundred packages, for now pin the previous major until the new react-markdown major is released.

@github-actions

This comment was marked as resolved.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Aug 31, 2023
@lewiswolf
Copy link
Author

sorry for the duplicate! I checked rehype but thought I checked both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants