I have tsconfig.json with the following options:
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "./src/lib",
"outDir": "../../out-tsc/lib"
}
}
As you can see I set "baseUrl": "./src/lib"
.
Problem is Visual Code can not find paths:
import { SearchType } from "models/search-type";
import { ShowObjects } from "models/ReonMapApi/show-objects";
import { DOMFunctions } from "common/DOM-element-functions";
All directives with these files are places by path:
/src/lib/models/*
/src/lib/common/*
But I dont understan why VisualCode does consider that it is wrong import path?
How to fix it? I need to say VisualCode to import this all files from root /src/lib/