Skip to content

[NewErrors] 5.1.0-dev.20230306 vs 5.0.1-rc #53122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
typescript-bot opened this issue Mar 6, 2023 · 14 comments
Closed

[NewErrors] 5.1.0-dev.20230306 vs 5.0.1-rc #53122

typescript-bot opened this issue Mar 6, 2023 · 14 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.1.0-dev.20230306, but not by 5.0.1-rc
Pipeline that generated this bug
Logs for the pipeline run
File that generated the pipeline

This run considered 250 popular TS repos from GH (after skipping the top 0).

Successfully analyzed 131 of 250 visited repos
Outcome Count
Detected interesting changes 7
Detected no interesting changes 124
Git clone failed 1
Package install failed 25
Project-graph error in old TS 5
Too many errors in old TS 83
Unknown failure 5

Investigation Status

Repo Errors Outcome
angular/angular-cli 6
compiler-explorer/compiler-explorer 2
infinitered/ignite 1
Molunerfinn/PicGo 3
pmndrs/jotai 1
tldraw/tldraw 14
trufflesuite/truffle 6
@typescript-bot
Copy link
Collaborator Author

angular/angular-cli

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

packages/angular_devkit/build_angular/test/hello-world-app/e2e/tsconfig.e2e.json

  • error TS2688: Cannot find type definition file for 'jasmine'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.
    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-app/src/tsconfig.server.json

  • error TS2688: Cannot find type definition file for '@angular/localize'.
    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-app/src/tsconfig.spec.json

  • error TS2688: Cannot find type definition file for '@angular/localize'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'jasmine'.
    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.spec.json

  • error TS2688: Cannot find type definition file for 'jasmine'.
    • Project Scope

@typescript-bot
Copy link
Collaborator Author

compiler-explorer/compiler-explorer

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

cypress/tsconfig.json

  • error TS2688: Cannot find type definition file for 'chai-http'.
    • Project Scope

tsconfig.json

  • error TS2688: Cannot find type definition file for 'chai-http'.
    • Project Scope

@typescript-bot
Copy link
Collaborator Author

infinitered/ignite

boilerplate/tsconfig.json

@typescript-bot
Copy link
Collaborator Author

Molunerfinn/PicGo

tsconfig.json

  • error TS2688: Cannot find type definition file for 'element-plus/global'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'vue3-photo-preview'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'webpack-env'.
    • Project Scope

@typescript-bot
Copy link
Collaborator Author

pmndrs/jotai

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

examples/mega-form/tsconfig.json

@typescript-bot
Copy link
Collaborator Author

tldraw/tldraw

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

packages/vec/tsconfig.build.json

packages/vec/tsconfig.dev.json

packages/intersect/tsconfig.build.json

packages/intersect/tsconfig.dev.json

packages/curve/tsconfig.build.json

packages/curve/tsconfig.dev.json

packages/curve/tsconfig.json

@typescript-bot
Copy link
Collaborator Author

trufflesuite/truffle

10 of 43 projects failed to build with the old tsc and were ignored

packages/blockchain-utils/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.
    • Project Scope

packages/config/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.
    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.
    • Project Scope

packages/from-hardhat/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.
    • Project Scope

packages/hdwallet/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.
    • Project Scope

@DanielRosenwasser
Copy link
Member

@sheetalkamat I think #51715 affected many of these, and I believe (most of?) these are configured correctly. Could you take a look?

@sheetalkamat
Copy link
Member

Taking look.

@sheetalkamat
Copy link
Member

sheetalkamat commented Mar 7, 2023

compiler-explorer/compiler-explorer

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

cypress/tsconfig.json

  • error TS2688: Cannot find type definition file for 'chai-http'.

    • Project Scope

tsconfig.json

  • error TS2688: Cannot find type definition file for 'chai-http'.

    • Project Scope

https://github.com/compiler-explorer/compiler-explorer/blob/dd2c08693cd8d4682e2003eeff4d3dab3d870493/cypress/tsconfig.json#L9 needs to include "../node_modules" as well in typeRoots

https://github.com/compiler-explorer/compiler-explorer/blob/dd2c08693cd8d4682e2003eeff4d3dab3d870493/tsconfig.backend.json#L13 needs to include "node_modules" in typeRoots

@sheetalkamat
Copy link
Member

sheetalkamat commented Mar 7, 2023

angular/angular-cli

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

packages/angular_devkit/build_angular/test/hello-world-app/e2e/tsconfig.e2e.json

  • error TS2688: Cannot find type definition file for 'jasmine'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.

    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-app/src/tsconfig.server.json

  • error TS2688: Cannot find type definition file for '@angular/localize'.

    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-app/src/tsconfig.spec.json

  • error TS2688: Cannot find type definition file for '@angular/localize'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'jasmine'.

    • Project Scope

packages/angular_devkit/build_angular/test/hello-world-lib/projects/lib/tsconfig.spec.json

  • error TS2688: Cannot find type definition file for 'jasmine'.

    • Project Scope

These have missing package.json so the typeRoots specified dont contain @types which before would just go and fallback and resolve from ancestor node_modules

@sheetalkamat
Copy link
Member

sheetalkamat commented Mar 7, 2023

Molunerfinn/PicGo

tsconfig.json

  • error TS2688: Cannot find type definition file for 'element-plus/global'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'vue3-photo-preview'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'webpack-env'.

    • Project Scope

This needs change to tsconfig.json typeRoots as:
image

@sheetalkamat
Copy link
Member

sheetalkamat commented Mar 7, 2023

tldraw/tldraw

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

packages/vec/tsconfig.build.json

packages/vec/tsconfig.dev.json

packages/intersect/tsconfig.build.json

packages/intersect/tsconfig.dev.json

packages/curve/tsconfig.build.json

packages/curve/tsconfig.dev.json

packages/curve/tsconfig.json

This one needs further fixing. If looking into node_modules/@types we need to handle scoped package names.

image

@sheetalkamat
Copy link
Member

trufflesuite/truffle

10 of 43 projects failed to build with the old tsc and were ignored

packages/blockchain-utils/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.

    • Project Scope

packages/config/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.

    • Project Scope
  • error TS2688: Cannot find type definition file for 'node'.

    • Project Scope

packages/from-hardhat/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.

    • Project Scope

packages/hdwallet/tsconfig.json

  • error TS2688: Cannot find type definition file for 'mocha'.

    • Project Scope

This needs fixing typeRoots in tsconfig to correct paths eg.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants