Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatibility between react-scripts and typescript versions #177

Open
cardoe opened this issue Nov 2, 2021 · 1 comment
Open

incompatibility between react-scripts and typescript versions #177

cardoe opened this issue Nov 2, 2021 · 1 comment

Comments

@cardoe
Copy link

cardoe commented Nov 2, 2021

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.

cardoe added a commit to cardoe/fastapi-react that referenced this issue Nov 2, 2021
Bumped react-scripts to 4.0.3 as well as any associated dependencies to
have full TypeScript 4.x support. fixes Buuntu#177
@GoronWow
Copy link

GoronWow commented Nov 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants