Skip to content

baseUrl is not respected #474

@MichaelMitchell-at

Description

@MichaelMitchell-at

Instructions:
Create the following directory structure:

  • tsconfig.json
{
  "compilerOptions": {
    "noEmit": true,
    "baseUrl": "."
  }
}
  • index.ts
export {type A} from 'internal/utils';
  • internal
    • utils.ts
    export type A = {};

Expected behavior:

$ tsc
# no error

Actual behavior

$ tsgo tsc
index.ts(1,24): error TS2307: Cannot find module 'internal/utils' or its corresponding type declarations.

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