ide-typescript icon indicating copy to clipboard operation
ide-typescript copied to clipboard

BaseURL detection or setting

Open vangogh500 opened this issue 7 years ago • 0 comments

Is there a baseurl config or a way for the package to detect the "baseUrl" in my tsconfig.json?

Here is my tsconfig.json: { "compilerOptions": { "outDir": "./dist/js/", "sourceMap": true, "noImplicitAny": true, "module": "commonjs", "target": "es5", "lib": ["es5", "es6", "dom"], "jsx": "react", "baseUrl": "./src" }, "include": [ "./src/**/*" ] } And here is the import statement that is giving me a warning: import MainNav from 'Components/MainNav/index'

The warning message is:

Cannot find module 'Components/MainNav/index'

I know the path is correct since when I compile it via TS and webpack it works just fine.

Let me know if this is just a feature I am missing or something that can be added.

Thanks :)

P.S. Also would be amazing if you guys can give support for paths as well!

vangogh500 avatar May 29 '18 14:05 vangogh500