Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

skipLibCheck is not working as intended on skipping modules-as-namespaces error #2909

Closed as duplicate

Description

Steps to reproduce

  1. Start a plain new project
    a. "@typescript/native-preview": "^7.0.0-dev.20260225.1"
    b. "typescript": "6.0.0-beta"
    c. "gl-matrix": "3.4.3", or any package that has been treating modules as namespaces in types
  2. Run npx tsgo --init to get the default tsconfig. Make sure "skipLibCheck" is set to true.
  3. Add a src/main.ts. Run npx tsc --noEmit & npx tsgo --noEmit to see the difference.
// src/main.ts

import {} from 'gl-matrix';

Behavior with typescript@6.0

No error, as it should be.

Behavior with tsgo

Found 10 errors in the same file, starting at: node_modules/gl-matrix/index.d.ts:93

^All these errors is about modules-as-namespaces "mistakes", which are not skipped correctly by tsconfig.


By the way, it looks like skipLibCheck is not (yet) in the typescript playground. I think it is definitely a nice-to-have :)

Activity

  1. jakebailey commented on Feb 26, 2026

    @jakebailey
    Member

    This is intentional. #2873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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