question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is create react app editing my `tsconfig.json`?

See original GitHub issue

Is this a bug report?

No

Why is create react app editing my tsconfig.json

Config files like tsconfig should be project specific.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
rovansteencommented, Jan 28, 2019

@developer239 CRA should always “just” work. If we don’t enforce or restrict certain features we will break functionality or have inconsistencies. There was no deliberate choice to disable absolute imports in Typescript because we don’t want that feature but because it hasn’t been implemented in such a way that it is consistent and will always work.

We are currently working on absolute imports for both TypeScript and JavaScript. You can track the progress here: https://github.com/facebook/create-react-app/pull/6116

2reactions
Timercommented, Jan 25, 2019

Create React App only supports certain TypeScript features. Because of this, the tsconfig.json is modified to be in compliance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure react-script so that it doesn't override tsconfig ...
I was able to do this by using advice from this issue. Put the configuration options react scripts likes to remove in a...
Read more >
How To Use Typescript with Create React App | DigitalOcean
Navigate to your project directory and open it in your code editor. Examining the tsconfig.json File. You may have noticed that your terminal ......
Read more >
Adding TypeScript - Create React App
You are not required to make a tsconfig.json file, one will be made for you. You are allowed to edit the generated TypeScript...
Read more >
Use Typescript in an already existing create-react-app Project
Add typescript to an existing create-react-app project ... Finally, you should see a tsconfig.json file in your project structure. You can modify the...
Read more >
Create React App and TypeScript: A Quick How-To | Built In
If you're still getting an error in your tsconfig.js file, you might be using different versions of TypeScript. Type cmd + shift ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found