-
-
Notifications
You must be signed in to change notification settings - Fork 18
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 was overwrote by react-scripts #1
Comments
It should be added to the README. |
Thanks for support friends. Your supports very significant for me. I have not so much time. I am creating an opensource for all and it is very significant for me to feel support and to know that you like and to know it is used and on demand. I created not so long ago my twitter and facebook accounts where I will post news about new features and future updates - subscribe for a news. 🍺 |
Hi, tested this with "react-scripts": "3.4.0", and this workaround does not seem to be working. The following message still appears (Checked that this error is not reported when I delete "paths" out of tsconfig.paths.json)
Can I check which version was this workaround tested with? |
^ I am seeing the above issue as well |
@ruffy0002
Full list of dependencies
set up tsconfig.json, tsconfig.paths.json, and config-overrides.js exactly as described above and set up your package.json scripts as instructed in the ReadMe Now, when you go to use the alias in your IDE it still doesn't work. Either restart/reload your IDE or do a build - do this every time you add a new alias. For VS Code, you can reload the window by opening the command palette (ctrl+shift+p) Eventually you will build your project, and when you do you will get the following warning. Ignore this warning, it doesn't appear to have any impact on the build process.
This has been tested with these IDEs: @oklas I truly appreciate your hard work on this tool, you've saved me from such a headache! |
I rewrite and simplify docs to show what need to do for these days to make it worked (instead of which files and options are exists and its possible values). I also added an example project it works - check it 🚴♂️ (currently it uses temporary patch - see #9). Feel free to ask. Subscribe to twitter for a news.👍 |
I add the paths config in tsconfig.json, it looks like:
But when I start up(
"start": "react-app-rewired start
), it shows up this log, my tsconfig.json would be overwrote. (paths disappears)Solution
Refer this extends
Use tsconfig.paths.json
then add this line in tsconfig.json
"extends": "./tsconfig.paths.json"
my config-overrides.js
cheers 🍺
The text was updated successfully, but these errors were encountered: