Below you will find pages that utilize the taxonomy term “vs-code”
Posts
Typescript module resolution for test files in VS Code
In a Typescript project I am working on, I use tsconfig’s paths property to create local modules that I can refer to in the project’s import without having to type a long relative directory.
E.g. Instead of typing:
import { module } from '../../../modules/module'; I want to type:
import { module } from '@modules/module'; To accomplish this, I have added the paths property to my root-level tsconfig.json file:
// Root-level tsconfig // File: .