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
TS2322: Type '({ error }: { error: any; }) => Element' is not assignable to type 'PageComponent'.
Type '({ error }: { error: any; }) => Element' is not assignable to type 'FunctionComponent<{}>'.
Types of parameters '__0' and 'props' are incompatible.
Am I doing something wrong?
Or does the way PageComponent is defined does not allow this because ComponentType is used without a type variable?
In a TypeScript project, I'd like to implement an error page like the one from the error page examples:
But this results in a TypeScript error:
Am I doing something wrong?
Or does the way
PageComponent
is defined does not allow this becauseComponentType
is used without a type variable?Any help is much appreciated!
The text was updated successfully, but these errors were encountered: