Or use Typescript and use alias there.... React with JS is suck a mess
How do you setup alias using typescript? I'm having hard times setting up alias with typescript, It automatically overrides tsconfig settings when we run the project again and jsconfig won't work with typescript.
Sorry I don't use jsconfig at all, we use pure TSC (Typescript) compiler and we don't use Babel for our projects.
For pure typescript it's just a configuration in tsconfig.json as you mentioned. I am not sure what's going on with your setup, unfortunately Cheers
I understand, I just want to know that setting how you setup alias using tsconfig in CRA.
I'm sorry I misunderstood you. We're not using React so I can't say how it's done there, unfortunately. So sorry
Some comments have been hidden by the post's author - find out more
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Or use Typescript and use alias there.... React with JS is suck a mess
How do you setup alias using typescript? I'm having hard times setting up alias with typescript, It automatically overrides tsconfig settings when we run the project again and jsconfig won't work with typescript.
Sorry I don't use jsconfig at all, we use pure TSC (Typescript) compiler and we don't use Babel for our projects.
For pure typescript it's just a configuration in tsconfig.json as you mentioned. I am not sure what's going on with your setup, unfortunately
Cheers
I understand, I just want to know that setting how you setup alias using tsconfig in CRA.
I'm sorry I misunderstood you.
We're not using React so I can't say how it's done there, unfortunately. So sorry