create-react-app with TypeScript absolute imports #12536
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...
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions