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

tsconfig.json is regenerated (wiping out changes) on start script #6086

Closed
thomasmost opened this issue Dec 24, 2018 · 4 comments
Closed

tsconfig.json is regenerated (wiping out changes) on start script #6086

thomasmost opened this issue Dec 24, 2018 · 4 comments

Comments

@thomasmost
Copy link

tsconfig.json seems to be regenerated every time I start the dev server

Is this a bug report?

No

What's happening

Every time I run react-app-rewired start (we are using rewired just for hot-reloading), my tsconfig.json file gets regenerated. The documentation here seems to imply that you can modify your tsconfig.json file once it is generated by CRA, so I feel like I must be missing something obvious. How do I add a baseUrl or paths property to my tsconfig.json file?

Thank you!

@Timer
Copy link
Contributor

Timer commented Dec 24, 2018

You can only modify select fields -- we do not support overriding baseUrl and paths.

@thomasmost
Copy link
Author

Thanks -- how do you get absolute path imports working with typescript then?

@Timer
Copy link
Contributor

Timer commented Dec 24, 2018

We have a issue tracking this:
#5692
#5118

@thomasmost
Copy link
Author

Thank you!

@lock lock bot locked and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants