-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Don't create tsconfig.json if tsconfig.base.json exists #6199
Comments
Hi @vjsingh, I did a quick search and found this pattern in a few places, but as far as I could see, Could you extend your config with our A few thoughts on this: The There is also work underway to make |
Thanks @mrmckeb, I think you're right that this may not be needed. I did some reading on #6116 yesterday and some other issues around I'm having a lot of trouble going from my current react-native setup with react-native-scripts-ts to trying to use create-react-app so that I can use react-native-web. Currently, I run my native project with There are I think 3 things that the
Is there an example repo or recommended setup for create-react-app that is also a react native app, and has a server typescript project in the same repo? I was looking around for something like this yesterday and couldn't find it. |
No problem @vjsingh. So, I am not sure if there's an example repo set up that does this - as we don't provide one. I understand what your requirement is now, and why you have the For your specific use case, you could also consider forking this project, and building your own |
@mrmckeb Thanks again I appreciate the help, having trouble navigating these murky build and compiler waters. Forking sounds like my best option at this point so I'll go ahead and close this. Since you understand my use case though, I'd really appreciate any resources of any kind or links to existing similar forks that you could share! |
@mrmckeb I followed this guide to fork react-scripts: https://medium.com/@denis.zhbankov/maintaining-a-fork-of-create-react-app-as-an-alternative-to-ejecting-c555e8eb2b63 I am getting this error after trying to installing my react-scripts fork: I believe it is related to this comment in that article:
Probably missing something simple here, but what is the recommended procedure for using a custom fork of react-scripts? |
OK, would still probably be nice to have my own fork, but I managed to get my setup working correctly and with absolute imports using this comment, and also setting |
@mrmckeb it does seem like it could be related to that PR. I just cloned the create-react-app repo, made an insignificant change and then published react-scripts to npm. Following the guide in that article You should be able to repro like this: |
Is this a bug report?
no
When running
react-scripts start
, the script creates atsconfig.json
even though I already have atsconfig.base.json
.The base file is used because I have multiple projects (client and server) that inherit from this base file. I don't see any reason that it wouldn't be safe to avoid generated a tsconfig.json if tsconfig.base.json exists?
@Timer @ianschmitz
The text was updated successfully, but these errors were encountered: