Buuntu / fastapi-react

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

incompatibility between react-scripts and typescript versions #177

Open cardoe opened 2 years ago

cardoe commented 2 years ago

react-scripts used by this project and typescript used are incompatible with each other. react-scripts 3.x have a peer dependency on typescript < 4 while this project pulls in typescript 4.0.2. This results in the default not working out of the box.

GoronWow commented 1 year ago

Nice find,

This fixed it for me, not sure if its the proper way. Changing typescript version to "typescript": "^3.0.2", in package.json and rebuilding with docker compose build worked for me.