Skip to content

tsconfig paths not work if dir name start with dot. #36922

Open
@zhongzhong0505

Description

@zhongzhong0505

TypeScript Version: 3.7.3

Search Terms:

Code

./.temp/test

export enum Test {
  test
}

The following code does not work

import { Test } from '@temp/test'
paths: {
"@temp/*": [
        "./.temp/*"
      ]
}

Expected behavior:
import not error tips.
Actual behavior:
image

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions