Skip to content

Conversation

RyanCavanaugh
Copy link
Member

#62442 doesn't seem to be going well

Fixes #62421

@Copilot Copilot AI review requested due to automatic review settings September 12, 2025 17:20
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Sep 12, 2025
@RyanCavanaugh RyanCavanaugh added Breaking Change Would introduce errors in existing code and removed Author: Team labels Sep 12, 2025
@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Sep 12, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the noUncheckedSideEffectImports compiler option by default. The option checks that side effect imports (imports without bindings like import "module") can be properly resolved, helping to catch errors where modules cannot be found or resolved.

Key changes:

  • Changed the default value from false to true for the noUncheckedSideEffectImports option
  • Updated compiler logic to enable the flag by default
  • Added test suppressions for existing tests that relied on the old behavior

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.

File Description
src/compiler/commandLineParser.ts Changed default value description from false to true
src/compiler/checker.ts Updated logic to enable flag by default using !== false instead of !!
Multiple test files Added // @noUncheckedSideEffectImports: false directive to preserve existing test behavior
Test baseline files Updated error outputs to reflect new default behavior catching side effect import errors

@RyanCavanaugh
Copy link
Member Author

@typescript-bot test it
@typescript-bot run top800

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 12, 2025

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started 👀 Results
user test this ✅ Started ✅ Results
run dt ✅ Started 👀 Results
perf test this faster ✅ Started 👀 Results

@typescript-bot
Copy link
Collaborator

Hey @RyanCavanaugh, the results of running the DT tests are ready.

There were interesting changes:

Branch only errors:

Package: chai-like
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-like/chai-like-tests.ts
  2:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-like/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: splitting
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/splitting/splitting-tests.ts
  2:8  error  TypeScript@local compile error: 
Cannot find module 'splitting/dist/splitting.css' or its corresponding type declarations        @definitelytyped/expect
  3:8  error  TypeScript@local compile error: 
Cannot find module 'splitting/dist/splitting-cells.css' or its corresponding type declarations  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-json-schema
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-json-schema/chai-json-schema-tests.ts
  3:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-json-schema/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: react-katex
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/react-katex/react-katex-tests.tsx
  1:8  error  TypeScript@local compile error: 
Cannot find module 'katex/dist/katex.min.css' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: vue-moment
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/vue-moment/vue-moment-tests.ts
  2:8  error  TypeScript@local compile error: 
Cannot find module 'moment/locale/de' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: dirty-chai
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/dirty-chai/dirty-chai-tests.ts
  7:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/dirty-chai/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: redux-shortcuts
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/redux-shortcuts/index.d.ts
  3:8  error  TypeScript@local compile error: 
Cannot find module 'mousetrap/extensions/global' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: react-smartbanner
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/react-smartbanner/react-smartbanner-tests.tsx
  3:8  error  TypeScript@local compile error: 
Cannot find module 'react-smartbanner/dist/main.css' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: bmapgl-browser
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/bmapgl-browser/bmapgl-browser-tests.ts
  1:8  error  TypeScript@local compile error: 
Cannot find module 'bmapgl' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-subset
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-subset/chai-subset-tests.ts
  4:8  error  TypeScript@local compile error: 
Cannot find module 'chai/register-should' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: vue3-carousel-3d
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/vue3-carousel-3d/vue3-carousel-3d-tests.ts
  3:8  error  TypeScript@local compile error: 
Cannot find module 'vue3-carousel-3d/dist/index.css' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: babel-types
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/babel-types/babel-types-tests.ts
  1:8  error  TypeScript@local compile error: 
Cannot find module './ts3.6/babel-types-tests' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-string
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-string/chai-string-tests.ts
  6:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-string/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-fs
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-fs/chai-fs-tests.ts
  2:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-fs/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: karma-chai
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/karma-chai/index.d.ts
  1:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai")' call instead  @definitelytyped/expect

/mnt/vss/_work/1/DefinitelyTyped/types/karma-chai/karma-chai-tests.ts
  2:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/karma-chai/package.json'  @definitelytyped/expect

✖ 2 problems (2 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: node/v18
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/node/v18/node-tests.ts
  12:8  error  TypeScript@local tsconfig.dom.json, local tsconfig.non-dom.json compile error: 
Cannot find module './test/dom-events' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-spies
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-spies/chai-spies-tests.ts
  2:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-spies/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: page-flip
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/page-flip/dist/PageFlip.d.ts
  9:8  error  TypeScript@local compile error: 
Cannot find module './Style/stPageFlip.css' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: rangy
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/rangy/rangy-tests.ts
  2:8  error  TypeScript@local compile error: 
Cannot find module 'rangy/lib/rangy-classapplier' or its corresponding type declarations          @definitelytyped/expect
  3:8  error  TypeScript@local compile error: 
Cannot find module 'rangy/lib/rangy-highlighter' or its corresponding type declarations           @definitelytyped/expect
  4:8  error  TypeScript@local compile error: 
Cannot find module 'rangy/lib/rangy-selectionsaverestore' or its corresponding type declarations  @definitelytyped/expect
  5:8  error  TypeScript@local compile error: 
Cannot find module 'rangy/lib/rangy-serializer' or its corresponding type declarations            @definitelytyped/expect
  6:8  error  TypeScript@local compile error: 
Cannot find module 'rangy/lib/rangy-textrange' or its corresponding type declarations             @definitelytyped/expect

✖ 5 problems (5 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: tablesorter
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/tablesorter/test/Methods.ts
  1:8  error  TypeScript@local compile error: 
Cannot find module './Tests' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: hapi
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/hapi/test/server/server-events.ts
  4:8  error  TypeScript@local compile error: 
Cannot find module 'hapi/definitions/server/server' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: hapi/v17
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/hapi/v17/test/server/server-events.ts
  4:8  error  TypeScript@local compile error: 
Cannot find module 'hapi/definitions/server/server' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: chai-arrays
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/chai-arrays/chai-arrays-tests.ts
  2:8  error  TypeScript@local compile error: 
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("chai/register-should")' call instead.
  To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to '/mnt/vss/_work/1/DefinitelyTyped/types/chai-arrays/package.json'  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: wonder.js
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/wonder.js/index.d.ts
  556:12  error  TypeScript@local compile error: 
Cannot find module 'wonder-frp/dist/es2015/extend/root' or its corresponding type declarations  @definitelytyped/expect

✖ 1 problem (1 error, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

Package: gun
Error:

Error: 
/mnt/vss/_work/1/DefinitelyTyped/types/gun/gun-tests.ts
   3:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/path.js' or its corresponding type declarations   @definitelytyped/expect
   4:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/not.js' or its corresponding type declarations    @definitelytyped/expect
   5:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/open.js' or its corresponding type declarations   @definitelytyped/expect
   6:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/load.js' or its corresponding type declarations   @definitelytyped/expect
   7:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/then.js' or its corresponding type declarations   @definitelytyped/expect
   8:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/bye.js' or its corresponding type declarations    @definitelytyped/expect
   9:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/later.js' or its corresponding type declarations  @definitelytyped/expect
  10:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/unset.js' or its corresponding type declarations  @definitelytyped/expect
  11:8  error  TypeScript@local compile error: 
Cannot find module 'gun/lib/time.js' or its corresponding type declarations   @definitelytyped/expect

✖ 9 problems (9 errors, 0 warnings)

    at combineErrorsAndWarnings (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:199:28)
    at runTests (/mnt/vss/_work/1/DefinitelyTyped/node_modules/.pnpm/@[email protected][email protected]/node_modules/@definitelytyped/dtslint/dist/index.js:191:20)

You can check the log here.

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the user tests with tsc comparing main and refs/pull/62443/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Git clone failed"

Otherwise...

Everything looks good!

Comment on lines +14 to +16
import "./extention";
~~~~~~~~~~~~~
!!! error TS2307: Cannot find module './extention' or its corresponding type declarations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, why doesn't this work?

Copy link
Member Author

@RyanCavanaugh RyanCavanaugh Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we wrote extention (t) and the file is called extension (s), lmao

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proof the flag is good

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,370 62,370 ~ ~ ~ p=1.000 n=6
Types 50,386 50,386 ~ ~ ~ p=1.000 n=6
Memory used 194,650k (± 0.98%) 194,004k (± 0.96%) ~ 192,793k 196,452k p=0.173 n=6
Parse Time 1.30s (± 0.64%) 1.30s (± 0.31%) ~ 1.30s 1.31s p=0.285 n=6
Bind Time 0.72s 0.72s (± 0.71%) ~ 0.72s 0.73s p=0.174 n=6
Check Time 9.72s (± 0.26%) 9.73s (± 0.17%) ~ 9.71s 9.76s p=0.466 n=6
Emit Time 2.74s (± 0.58%) 2.75s (± 0.50%) ~ 2.74s 2.77s p=0.161 n=6
Total Time 14.49s (± 0.17%) 14.52s (± 0.22%) ~ 14.47s 14.56s p=0.148 n=6
angular-1 - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 948,914 948,914 ~ ~ ~ p=1.000 n=6
Types 410,884 410,884 ~ ~ ~ p=1.000 n=6
Memory used 1,245,579k (± 0.00%) 1,245,585k (± 0.01%) ~ 1,245,457k 1,245,666k p=1.000 n=6
Parse Time 6.56s (± 0.48%) 6.55s (± 0.60%) ~ 6.50s 6.60s p=0.628 n=6
Bind Time 1.88s (± 0.29%) 1.88s ~ ~ ~ p=0.071 n=6
Check Time 32.16s (± 0.30%) 32.30s (± 0.40%) ~ 32.16s 32.50s p=0.066 n=6
Emit Time 14.84s (± 0.16%) 14.85s (± 0.29%) ~ 14.79s 14.90s p=0.506 n=6
Total Time 55.43s (± 0.17%) 55.58s (± 0.32%) ~ 55.43s 55.85s p=0.173 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,542,314 2,542,314 ~ ~ ~ p=1.000 n=6
Types 902,611 902,611 ~ ~ ~ p=1.000 n=6
Memory used 2,826,811k (± 0.01%) 2,826,865k (± 0.00%) ~ 2,826,812k 2,826,999k p=0.936 n=6
Parse Time 8.71s (± 0.21%) 8.71s (± 0.36%) ~ 8.66s 8.75s p=0.685 n=6
Bind Time 2.18s (± 0.47%) 2.19s (± 0.93%) ~ 2.18s 2.23s p=0.591 n=6
Check Time 86.37s (± 0.92%) 86.23s (± 0.93%) ~ 85.36s 87.67s p=0.810 n=6
Emit Time 0.30s (± 1.35%) 0.30s (± 1.35%) ~ 0.30s 0.31s p=1.000 n=6
Total Time 97.56s (± 0.81%) 97.43s (± 0.81%) ~ 96.55s 98.83s p=0.810 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,083 1,237,083 ~ ~ ~ p=1.000 n=6
Types 259,748 259,749 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,973,461k (± 9.95%) 3,095,556k (± 0.02%) 🔻+122,096k (+ 4.11%) 3,094,637k 3,096,309k p=0.031 n=6
Parse Time 6.63s (± 1.34%) 6.65s (± 0.97%) ~ 6.57s 6.75s p=0.689 n=6
Bind Time 2.15s (± 2.58%) 2.12s (± 1.40%) ~ 2.09s 2.16s p=0.261 n=6
Check Time 42.49s (± 0.42%) 42.60s (± 0.38%) ~ 42.39s 42.84s p=0.471 n=6
Emit Time 3.50s (± 1.13%) 3.46s (± 2.52%) ~ 3.35s 3.57s p=0.520 n=6
Total Time 54.77s (± 0.43%) 54.82s (± 0.17%) ~ 54.70s 54.95s p=0.936 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,083 1,237,083 ~ ~ ~ p=1.000 n=6
Types 259,748 259,749 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,431,522k (± 0.03%) 2,491,783k (± 5.93%) ~ 2,431,021k 2,793,924k p=1.000 n=6
Parse Time 5.38s (± 0.81%) 5.36s (± 0.59%) ~ 5.31s 5.40s p=0.574 n=6
Bind Time 1.79s (± 0.45%) 1.79s (± 1.10%) ~ 1.76s 1.82s p=0.282 n=6
Check Time 35.07s (± 0.35%) 35.10s (± 0.55%) ~ 34.74s 35.26s p=0.575 n=6
Emit Time 3.05s (± 1.51%) 3.07s (± 0.72%) ~ 3.04s 3.09s p=0.373 n=6
Total Time 45.30s (± 0.23%) 45.33s (± 0.39%) ~ 45.01s 45.48s p=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,423 262,423 ~ ~ ~ p=1.000 n=6
Types 103,918 103,919 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 440,481k (± 0.01%) 440,500k (± 0.00%) ~ 440,474k 440,525k p=0.689 n=6
Parse Time 4.33s (± 1.07%) 4.34s (± 1.05%) ~ 4.26s 4.39s p=0.936 n=6
Bind Time 1.64s (± 0.60%) 1.64s (± 0.46%) ~ 1.63s 1.65s p=0.858 n=6
Check Time 23.52s (± 0.26%) 23.50s (± 0.24%) ~ 23.45s 23.60s p=0.628 n=6
Emit Time 1.91s (± 0.98%) 1.90s (± 0.79%) ~ 1.89s 1.92s p=0.869 n=6
Total Time 31.40s (± 0.29%) 31.38s (± 0.10%) ~ 31.33s 31.41s p=0.810 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 72 72 ~ ~ ~ p=1.000 n=6
Symbols 225,367 225,367 ~ ~ ~ p=1.000 n=6
Types 94,290 94,290 ~ ~ ~ p=1.000 n=6
Memory used 370,011k (± 0.03%) 370,033k (± 0.03%) ~ 369,930k 370,278k p=0.810 n=6
Parse Time 3.53s (± 1.05%) 3.52s (± 0.63%) ~ 3.49s 3.55s p=0.418 n=6
Bind Time 1.99s (± 1.68%) 1.98s (± 1.60%) ~ 1.94s 2.03s p=0.568 n=6
Check Time 20.37s (± 0.38%) 20.41s (± 0.46%) ~ 20.29s 20.55s p=0.521 n=6
Emit Time 0.00s (±244.70%) 0.00s (±244.70%) ~ 0.00s 0.01s p=1.000 n=6
Total Time 25.90s (± 0.28%) 25.91s (± 0.37%) ~ 25.80s 26.06s p=1.000 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,898,044 3,898,044 ~ ~ ~ p=1.000 n=6
Types 1,227,438 1,227,438 ~ ~ ~ p=1.000 n=6
Memory used 3,717,660k (± 0.01%) 3,717,464k (± 0.01%) ~ 3,717,150k 3,717,786k p=0.173 n=6
Parse Time 18.95s (± 0.75%) 18.87s (± 0.69%) ~ 18.75s 19.05s p=0.378 n=6
Bind Time 6.07s (± 0.50%) 6.09s (± 0.47%) ~ 6.05s 6.12s p=0.747 n=6
Check Time 126.03s (± 3.60%) 125.72s (± 1.85%) ~ 123.35s 129.64s p=0.575 n=6
Emit Time 41.80s (±17.83%) 51.56s (±20.63%) 🔻+9.76s (+23.34%) 41.92s 65.93s p=0.045 n=6
Total Time 192.87s (± 3.15%) 202.23s (± 5.45%) ~ 190.17s 216.78s p=0.128 n=6
webpack - node (v18.15.0, x64)
Errors 37 38 +1 (+ 2.70%) ~ ~ p=0.001 n=6
Symbols 361,535 361,535 ~ ~ ~ p=1.000 n=6
Types 158,752 158,752 ~ ~ ~ p=1.000 n=6
Memory used 515,735k (± 0.02%) 515,784k (± 0.02%) ~ 515,679k 515,870k p=0.810 n=6
Parse Time 4.43s (± 0.59%) 4.45s (± 0.39%) ~ 4.42s 4.47s p=0.122 n=6
Bind Time 1.92s (± 0.95%) 1.88s (± 0.78%) -0.04s (- 2.25%) 1.86s 1.89s p=0.005 n=6
Check Time 21.83s (± 0.37%) 21.82s (± 0.99%) ~ 21.58s 22.10s p=0.936 n=6
Emit Time 0.00s (±244.70%) 0.00s (±244.70%) ~ 0.00s 0.01s p=1.000 n=6
Total Time 28.19s (± 0.40%) 28.15s (± 0.77%) ~ 27.89s 28.45s p=0.688 n=6
xstate-main - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 668,465 668,465 ~ ~ ~ p=1.000 n=6
Types 200,558 200,558 ~ ~ ~ p=1.000 n=6
Memory used 572,194k (± 0.03%) 572,275k (± 0.03%) ~ 572,008k 572,441k p=0.471 n=6
Parse Time 4.17s (± 0.82%) 4.15s (± 0.50%) ~ 4.13s 4.18s p=0.169 n=6
Bind Time 1.32s (± 0.88%) 1.32s (± 1.11%) ~ 1.30s 1.34s p=1.000 n=6
Check Time 20.61s (± 1.57%) 20.41s (± 1.80%) ~ 20.15s 20.88s p=0.470 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 26.10s (± 1.26%) 25.88s (± 1.38%) ~ 25.63s 26.36s p=0.228 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are the results of running the top 400 repos with tsc comparing main and refs/pull/62443/merge:

Something interesting changed - please have a look.

Details

adobe/react-spectrum

15 of 18 projects failed to build with the old tsc and were ignored

examples/s2-next-macros/tsconfig.json

ahmedkhaleel2004/gitdiagram

tsconfig.json

  • error TS2307: Cannot find module '~/styles/globals.css' or its corresponding type declarations.

aidenybai/react-scan

6 of 7 projects failed to build with the old tsc and were ignored

packages/website/tsconfig.json

Chocobozzz/PeerTube

7 of 14 projects failed to build with the old tsc and were ignored

packages/tests/tsconfig.json

compiler-explorer/compiler-explorer

3 of 7 projects failed to build with the old tsc and were ignored

static/tsconfig.json

  • error TS2307: Cannot find module 'bootstrap/dist/css/bootstrap.min.css' or its corresponding type declarations.
  • error TS2307: Cannot find module 'golden-layout/src/css/goldenlayout-base.css' or its corresponding type declarations.
  • error TS2307: Cannot find module 'tom-select/dist/css/tom-select.bootstrap5.css' or its corresponding type declarations.
  • error TS2307: Cannot find module './styles/colours.scss' or its corresponding type declarations.
  • error TS2307: Cannot find module './styles/explorer.scss' or its corresponding type declarations.
  • error TS2307: Cannot find module './styles/noscript.scss' or its corresponding type declarations.

Dokploy/dokploy

4 of 6 projects failed to build with the old tsc and were ignored

apps/dokploy/tsconfig.json

Eugeny/tabby

30 of 31 projects failed to build with the old tsc and were ignored

web/tsconfig.json

  • error TS2307: Cannot find module 'source-sans-pro/source-sans-pro.css' or its corresponding type declarations.
  • error TS2307: Cannot find module 'source-code-pro/source-code-pro.css' or its corresponding type declarations.
  • error TS2307: Cannot find module '@fortawesome/fontawesome-free/css/solid.css' or its corresponding type declarations.
  • error TS2307: Cannot find module '@fortawesome/fontawesome-free/css/brands.css' or its corresponding type declarations.
  • error TS2307: Cannot find module '@fortawesome/fontawesome-free/css/regular.css' or its corresponding type declarations.
  • error TS2307: Cannot find module '@fortawesome/fontawesome-free/css/fontawesome.css' or its corresponding type declarations.
  • error TS2307: Cannot find module '../app/src/preload.scss' or its corresponding type declarations.
  • error TS2307: Cannot find module '../app/src/global.scss' or its corresponding type declarations.
  • error TS2307: Cannot find module '../app/src/toastr.scss' or its corresponding type declarations.

facebook/lexical

5 of 16 projects failed to build with the old tsc and were ignored

examples/react-plain-text/tsconfig.json

firecrawl/open-lovable

tsconfig.json

FuelLabs/fuels-ts

50 of 54 projects failed to build with the old tsc and were ignored

apps/demo-wallet-sdk-react/tsconfig.json

gvergnaud/ts-pattern

1 of 4 projects failed to build with the old tsc and were ignored

examples/gif-fetcher/tsconfig.json

hoppscotch/hoppscotch

14 of 18 projects failed to build with the old tsc and were ignored

packages/hoppscotch-desktop/tsconfig.json

immutable-js/immutable-js

4 of 6 projects failed to build with the old tsc and were ignored

website/tsconfig.json

inkonchain/ink-kit

tsconfig.json

  • error TS2307: Cannot find module './AllIcons.css' or its corresponding type declarations.
  • error TS2307: Cannot find module './tailwind.css' or its corresponding type declarations.

ItzCrazyKns/Perplexica

tsconfig.json

  • error TS2307: Cannot find module './globals.css' or its corresponding type declarations.

karakeep-app/karakeep

12 of 20 projects failed to build with the old tsc and were ignored

apps/web/tsconfig.json

  • error TS2307: Cannot find module '@karakeep/tailwind-config/globals.css' or its corresponding type declarations.

apps/mobile/tsconfig.json

nextjs/saas-starter

tsconfig.json

  • error TS2307: Cannot find module './globals.css' or its corresponding type declarations.

prisma/prisma

149 of 185 projects failed to build with the old tsc and were ignored

packages/client/tests/e2e/ts-version/next/tsconfig.json

packages/client/tests/e2e/ts-version/latest/tsconfig.json

packages/client/tests/e2e/ts-version/beta/tsconfig.json

packages/client/tests/e2e/ts-version/5.7/tsconfig.json

packages/client/tests/e2e/ts-version/5.6/tsconfig.json

packages/client/tests/e2e/ts-version/5.5/tsconfig.json

packages/client/tests/e2e/ts-version/5.4/tsconfig.json

packages/client/tests/e2e/ts-version/5.3/tsconfig.json

packages/client/tests/e2e/ts-version/5.2/tsconfig.json

packages/client/tests/e2e/ts-version/5.1/tsconfig.json

recharts/recharts

storybook/tsconfig.json

reduxjs/redux-devtools

25 of 58 projects failed to build with the old tsc and were ignored

packages/redux-devtools/examples/todomvc/tsconfig.json

RSSNext/Folo

2 of 18 projects failed to build with the old tsc and were ignored

apps/ssr/tsconfig.json

shadcn-ui/ui

21 of 27 projects failed to build with the old tsc and were ignored

templates/monorepo-next/apps/web/tsconfig.json

tailwindlabs/tailwindcss

9 of 11 projects failed to build with the old tsc and were ignored

playgrounds/v3/tsconfig.json

playgrounds/nextjs/tsconfig.json

tldraw/tldraw

27 of 30 projects failed to build with the old tsc and were ignored

apps/analytics/tsconfig.json

transloadit/uppy

22 of 61 projects failed to build with the old tsc and were ignored

packages/@uppy/dashboard/tsconfig.json

ueberdosis/tiptap

7 of 8 projects failed to build with the old tsc and were ignored

tests/cypress/tsconfig.json

vercel/ai

11 of 45 projects failed to build with the old tsc and were ignored

examples/nest/tsconfig.build.json

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are some more interesting changes from running the top 400 repos suite

Details

vuetifyjs/vuetify

3 of 7 projects failed to build with the old tsc and were ignored

packages/vuetify/tsconfig.json

packages/vuetify/tsconfig.dist.json

@typescript-bot
Copy link
Collaborator

@RyanCavanaugh Here are some more interesting changes from running the top 400 repos suite

Details

yamadashy/repomix

2 of 7 projects failed to build with the old tsc and were ignored

website/client/tsconfig.node.json

@jakebailey
Copy link
Member

Is it also time to make the message mention the flag? (I suspect it will be annoying to actually implement, though.)

@RyanCavanaugh
Copy link
Member Author

It's easy to implement (just need to pass in the context to resolveExternalModuleName)

Verbiage?

@jakebailey
Copy link
Member

Honestly probably it's fine to not.

We do need to fix the DT cases, though.

Maybe the results mean that we should be ignoring these in declaration files?

@RyanCavanaugh
Copy link
Member Author

Erroring in .d.ts files is still correct IMO, since if it's not yours it's almost certainly suppressed by skipLibCheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team Breaking Change Would introduce errors in existing code For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

Enable noUncheckedSideEffectImports by default on 6.0
3 participants