Skip to content
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

Warning about TypeScript 4.6 not supported #316

Closed
xemlock opened this issue Apr 17, 2022 · 0 comments · Fixed by #321
Closed

Warning about TypeScript 4.6 not supported #316

xemlock opened this issue Apr 17, 2022 · 0 comments · Fixed by #321
Milestone

Comments

@xemlock
Copy link

xemlock commented Apr 17, 2022

When run with TypeScript 4.6 installed in the project, madge displays the following warning (but otherwise works ok):

▶ npx tsc --version
Version 4.6.3

▶ npx madge --warning --circular --extensions ts,tsx src
⠋ Finding files=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.5.0

YOUR TYPESCRIPT VERSION: 4.6.3

Please only submit bug reports when using the officially supported version.

=============
Processed 437 files (3.4s)

The culprit is an outdated version of detective-typescript@7.0.2, which doesn't support (or at least warns about lack of support) TypeScript 4.6.

▶ npm ls @typescript-eslint/typescript-estree
├── @typescript-eslint/typescript-estree@5.19.0
└─┬ madge@5.0.1
  └─┬ detective-typescript@7.0.2
    └── @typescript-eslint/typescript-estree@4.33.0

Any chances of bumping the outdated dependencies?


I was able to get rid of this warning by adding an override in my package.json (npm@8.3+ required):

  "overrides": {
    "detective-typescript": "9.0.0"
  },
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

Successfully merging a pull request may close this issue.

2 participants