Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99078

How to configure tsconfig for root?

$
0
0

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/


Viewing all articles
Browse latest Browse all 99078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>