I get this error on each class component imported in my project, if anyone knows how to solve it, I would really appreciate it
Versions:
"react": "16.9.0",
"react-dom": "16.9.0",
"react-router-dom": "5.1.2",
"typescript": "3.7.4",
TypeScript error in /opt/buildagent/work/508378186b823554/src/AppRouter.tsx(49,7):
JSX element type 'Router' is not a constructor function for JSX elements.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/opt/buildagent/work/508378186b823554/node_modules/@types/hoist-non-react-statics/node_modules/@types/react/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
Type '{}' is not assignable to type 'ReactPortal'. TS2605