#Problem with tsc compiled output when using path alias
5 messages · Page 1 of 1 (latest)
!:paths%
`!t6:paths-are-not-magic`:
The paths and baseUrl compiler options don't cause any remapping of imports paths, they only inform TS of existing mappings, which you'll have to setup with some other tool.
baseUrl is a pretty well-supported option (e.g. using the NODE_PATH environment variable with node or resolve.modules with webpack).
paths can be trickier to setup, (especially with node see this for node), and you may find it to not be worth the effort.
tsc won't resolve path aliases. it assumes something else will.
please don't advertise jobs.