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
Read More:
- The Vue parent component uses ref to call the sub component method and reports an error
- react Error: Objects are not valid as a React child (found: object with keys {username, password})
- There is an error when idea creates a child item parent tag
- The common module of idea Maven parent-child project packages and reports an error
- 【react】 tsconfig.json Configuration of react JSX error reporting solution in
- webstorm npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)
- An error is reported when using react app rewired to start the react project
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- react Error: Unable to resolve module mobx-react
- Unknown custom element: <component> – did you register the component correctly
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- Higher order components in react
- About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”
- To solve the problem of NPM run eject error in react
- React Error: Minified React error #119
- The echo introduced in react reports an error: xaxis “0” not found
- close failed in file object destructor: IOError: [Error 10] No child processes
- Error in react build packaging test environment
- Flutter solves the problem of incorrect use of parent datawidget and boundary constraint