[Request] Opt out of tsconfig automation
See original GitHub issueAbove is the result of running yarn start
react-scripts v2.1.0
I use the following code so I can use absolute paths in my TypeScript files, but everytime I run the yarn
command, everything gets blown out, and I can’t run my project
"baseUrl": "./",
"paths": {
"src/*": [
"src/*"
]
}
Is there a way or could there be a way to opt out of react-scripts
auto-generating the tsconfig?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
paths lets you declare how TypeScript should resolve an import in your require / import s. {. " compilerOptions ": {. " baseUrl ......
Read more >strip - How can I initiate a TypeScript tsconfig.json file without ...
1 Answer 1 · -i will modify the tsconfig.json in-place · /^[ \t]*\//d removes the single line comments (by removing lines which start...
Read more >ts-jest - npm
ts-jest is a TypeScript preprocessor with source map support for Jest that lets you use Jest to test projects written in TypeScript.
Read more >Compiling TypeScript into JavaScript - PyCharm - JetBrains
To compile the TypeScript code of the entire application, select Compile All. · To compile one file, open it in the editor, and...
Read more >Upcoming improvements to Angular library distribution
This change will not require any action by developers. Libraries dependent on View Engine ... bar graph of applications opting out of Ivy....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s…disappointing. I’ve used absolute paths very successfully in large scale TypeScript projects - not sure why such a rule would be enforced so heavy-handedly here.
These values are not supported and are no-op in Create React App. They are removed to prevent confusion and fix errors (so they show properly) in VSCode.
Aliasing paths is a foot gun and isn’t of much value when using VSCode or an IDE. Absolute imports (
baseUrl
) will be supported at a later date. Closing as a duplicate of #5118. You can see a more detailed explanation here: https://github.com/facebook/create-react-app/issues/5585#issuecomment-433900655