Scenario:
Call subcomponent
1) Analyze the problem:
Type ‘XXX’ is not assignable to type ‘Omit< WrappedComponentProps< any>, “intl”>’.
There seems to be a problem with the type of subcomponents, which is related to Intl internationalization. Remove the internationalization and routing of subcomponents
2) It will still report errors:
Type ‘{pagevalue: pagevalue_type | undefined;}’ does not have the same attributes as type ‘internalattributes & amp; {children?: reactnode;}’. ts(2559)
resolvent:
As shown in the figure above, you need to add a generic & lt; to the type react.fc of the solution component; any>
Here the problem is solved