You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will cause VSCode to complain about types error,
No overload matches this call.
Overload 1 of 2, '(props: SyntaxHighlighterProps): SyntaxHighlighter', gave the following error.
Type '{ PreTag: "div"; children: string; language: string; style: { [key: string]: CSSProperties; }; ref?: LegacyRef<HTMLElement> | undefined; key?: Key | null | undefined; ... 267 more ...; onTransitionStartCapture?: TransitionEventHandler<...> | undefined; }' is not assignable to type'IntrinsicClassAttributes<SyntaxHighlighter>'.
Types of property 'ref' are incompatible.
Problem solved, so maybe it was kinda useful to note this here. and feel free to close anytime.
Expected behavior
Everything works
Actual behavior
No overload matches this call.
Overload 1 of 2, '(props: SyntaxHighlighterProps): SyntaxHighlighter', gave the following error.
Type '{ PreTag: "div"; children: string; language: string; style: { [key: string]: CSSProperties; }; ref?: LegacyRef<HTMLElement> | undefined; key?: Key | null | undefined; ... 267 more ...; onTransitionStartCapture?: TransitionEventHandler<...> | undefined; }' is not assignable to type'IntrinsicClassAttributes<SyntaxHighlighter>'.
Types of property 'ref' are incompatible.
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered:
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.
Initial checklist
Affected packages and versions
latest
Link to runnable example
No response
Steps to reproduce
I'm using like this,
It will cause VSCode to complain about types error,
then I made following change:
Problem solved, so maybe it was kinda useful to note this here. and feel free to close anytime.
Expected behavior
Everything works
Actual behavior
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: