- Learn React with TypeScript 3
- Carl Rippon
- 59字
- 2021-06-10 19:16:39
--moduleResolution
This tells the TypeScript compiler how to resolve modules. This can be set to classic or node. If we are using ES6 modules, this defaults to classic, which means the TypeScript compiler struggles to find third-party packages such as Axios. So, we can explicitly set this to node to tell the compiler to look for modules in "node_modules".