Skip to content

TS2307 with @octokit/core in tsgo but not tsc #2246

@jfirebaugh

Description

@jfirebaugh

Steps to reproduce

package.json:

{
  "dependencies": {
    "@octokit/core": "7.0.3"
  }
}

tsconfig.json:

{
    "compilerOptions": {
        "skipLibCheck": true,
    }
}

test.ts:

import { OctokitOptions } from '@octokit/core/dist-types/types';

Behavior with [email protected]

No error.

Behavior with tsgo

$ tsgo --version                           
Version 7.0.0-dev.20251205.1
$ tsgo                                     
test.ts:1:32 - error TS2307: Cannot find module '@octokit/core/dist-types/types' or its corresponding type declarations.

1 import { OctokitOptions } from '@octokit/core/dist-types/types';
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in test.ts:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions