-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Unable to migrate from create-react-app-typescript #5909
Comments
Try setting |
@Timer |
If i remember it correctly,
Not sure, if it can help, but it could be a difference. |
@deftomat Yes you're right, CRA-TS is using ts-loader, but the article mentioned in the CRA migration docs recommends deleting the tsconfigs and letting CRA create the default tsconfig (which is what i did). Changing those flags between true and false seems to have to effect :( |
@borisyordanov Is it possible to create minimal repro? |
@deftomat I'll give it a go. I was hoping it was something obvious and you guys might be able to point me in the right direction.. I'll get back to you with a repo. |
you might have two versions of the same dependency installed. in that case you can add a resolutions entry in your package.json |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
Is this a bug report?
Yes, but i'm not sure if the bug is caused by CRA
Did you try recovering your dependencies?
Which terms did you search for in User Guide?
https://github.com/facebook/create-react-app/blob/49e258b4a6d04fb7e3542d7a060c6dcad4093564/docusaurus/docs/adding-typescript.md
Environment
npx create-react-app --info
doesn't work. It's an open issue - #5757I'm using Windows 10 though.
Description of bug
I've been trying to refactor a create-react-app-typescript app by following the blog post recommended in the docs - https://vincenttunru.com/migrate-create-react-app-typescript-to-create-react-app/
After i went through the steps and started the app i got this error:
this is the method that triggers it:
and this is the component that uses the method
For some reason the app is trying to import Range from one of the libraries i'm using
import("C:/Users/by/Desktop/Projects/maqan-frontend/node_modules/react-input-range/react-input-range").Range
instead of using the appropriate TS interface.
Does anyone know why this is happening and how it stop it?
N.B. This app, with the same packages is working fine with
react-scripts-ts
, this bug started when i migrated toreact-scripts
The text was updated successfully, but these errors were encountered: