Buuntu / fastapi-react

🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
MIT License
2.22k stars 349 forks source link

Types and versions #193

Open tomlinguist opened 2 years ago

tomlinguist commented 2 years ago

There is some issue with types resolution

/app/src/index.tsx TypeScript error in /app/src/index.tsx(8,4): 'Router' cannot be used as a JSX component. Its instance type 'BrowserRouter' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'React.ReactNode' is not assignable to type 'import("/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'. TS2786

 6 | 
 7 | ReactDOM.render(

8 | | ^ 9 | 10 | , 11 | document.getElementById('root')

AlmondMilk4242 commented 2 years ago

Hi im having the same issue, did anyone manage to deploy it without facing the above error message, Please Guide