Typescript Error: "No overload matches this call." #52369
Unanswered
nicolasCinzer
asked this question in
Help
Replies: 2 comments 1 reply
-
|
Install |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Quick update: seems like the problem is fixed in the latest version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi Next Community, how yall doing?
I was following the Dynamic Routes documentation, everything goes fines until the Render Markdown article.
Im getting this error by Typescript when html from 'remark-html' is assigned to use method parameter.
The line looks like this:
const processedContent = await remark().use(html).process(matterResult.content)Type error: No overload matches this call. Overload 1 of 3, '(plugin: Plugin<[], Root, string>, ...settings: [] | [boolean]): Processor<Root, Root, Root, string>', gave the following error. Argument of type '(this: Processor<void, Root, Root, string>, ...settings: [] | [(Options | undefined)?]) => void' is not assignable to parameter of type 'Plugin<[], Root, string>'. The 'this' types of each signature are incompatible. Type 'Processor<void, void, void, void>' is not assignable to type 'Processor<void, Root, Root, string>'. Type 'void' is not assignable to type 'Root'. Overload 2 of 3, '(tuple: [Plugin<any[], Root, Root>, ...any[]] | [Plugin<any[], Root, Root>, boolean]): Processor<Root, Root, Root, string>', gave the following error. Argument of type '(this: Processor<void, Root, Root, string>, ...settings: [] | [(Options | undefined)?]) => void' is not assignable to parameter of type '[Plugin<any[], Root, Root>, ...any[]] | [Plugin<any[], Root, Root>, boolean]'. Overload 3 of 3, '(presetOrList: Preset | PluggableList): Processor<Root, Root, Root, string>', gave the following error. Argument of type '(this: Processor<void, Root, Root, string>, ...settings: [] | [(Options | undefined)?]) => void' is not assignable to parameter of type 'Preset | PluggableList'.Its a Type Error, i usually know how to deal with problems like that but in this case i really dont have a clue about the resolve.
Anyone facing this same problem?
Thx Guys!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions