Skip to content Skip to sidebar Skip to footer

Typescript Absolute Module Paths Not Compiling Correctly

I am relatively new to typescript so maybe I am missing something here or don't fully understand the concept. In tsconfig I have defined the following in compilerOptions: Assumin

Solution 1:

The problem here is that the tsconfig only tells the typescript compiler where to find the type information. The resolving of the paths is a task for the bundler like webpack. Or the runtime executing the JavaScript.
If you want to have a look on a working configuration with webpack you can check out a sample with react I set up a few weeks ago https://github.com/kaoDev/react-ts-sample


Post a Comment for "Typescript Absolute Module Paths Not Compiling Correctly"