create-react-app with TypeScript absolute imports #12536
Unanswered
jamezening
asked this question in
Q&A
Replies: 2 comments 3 replies
|
Figured out that compilerOptions > paths cannot be set in create-react-app unless the configuration is overridden using craco etc. The current version of react-scripts in the project I am working on prevent installation and I am not able to update the scripts due to project requirements... |
0 replies
creating Try this link https://plusreturn.com/blog/how-to-configure-a-path-alias-in-a-react-typescript-app-for-cleaner-imports/, it works for me. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Am having trouble with absolute imports. Any tips would be appreciated!
but when I try
import ReservationListContainer from "@feature/reservations/ViewReservations/ReservationListContainer";I am getting this error:
Thank you for any help!
All reactions