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
Here's the error. It seems that the type for shouldComponentUpdate has changed to remove nextContext. Perhaps (hopefully 🤞🏻) this is as simple as updating react inside this package and fixing up the types. The component seems to function as expected even given this type issue.
'Vega' cannot be used as a JSX component.
Its type 'typeof Vega' is not a valid JSX element type.
Type 'typeof Vega' is not assignable to type 'new (props: any) => Component<any, any, any>'.
Construct signature return types 'Vega' and 'Component<any, any, any>' are incompatible.
The types of 'shouldComponentUpdate' are incompatible between these types.
Type '((nextProps: Readonly<VegaProps>, nextState: Readonly<{}>, nextContext: any) => boolean) | undefined' is not assignable to type '((nextProps: Readonly<any>, nextState: Readonly<any>) => boolean) | undefined'.
Type '(nextProps: Readonly<VegaProps>, nextState: Readonly<{}>, nextContext: any) => boolean' is not assignable to type '(nextProps: Readonly<any>, nextState: Readonly<any>) => boolean'.
Target signature provides too few arguments. Expected 3 or more, but got 2.ts(2786)
react-vega: 7.4.0
react: 19.0.0
The text was updated successfully, but these errors were encountered:
Here's the error. It seems that the type for
shouldComponentUpdate
has changed to removenextContext
. Perhaps (hopefully 🤞🏻) this is as simple as updating react inside this package and fixing up the types. The component seems to function as expected even given this type issue.react-vega: 7.4.0
react: 19.0.0
The text was updated successfully, but these errors were encountered: