Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

BaseURL detection or setting #112

Description

@vangogh500

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions