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

Get unsupported typescript version error on vue files even after downgrading to supported version range #441

Open
Akindin opened this issue Oct 24, 2024 · 1 comment

Comments

@Akindin
Copy link

Akindin commented Oct 24, 2024

npx tsc -v gives Version 5.5.4
tsc -v gives Version 5.5.4
npx vue-tsc -v gives Version 5.5.4

madge --extensions ts,vue --image graph.svg 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: >=4.7.4 <5.6.0

YOUR TYPESCRIPT VERSION: 5.6.3

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

=============

✖ SyntaxError: Unexpected token (7:2)
    at constructor (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:362:19)
    at FlowParserMixin.raise (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:3259:19)
    at FlowParserMixin.unexpected (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:3279:16)      
    at FlowParserMixin.parseExprAtom (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10970:16)  
    at FlowParserMixin.parseExprAtom (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:6811:20)   
    at FlowParserMixin.parseExprSubscripts (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10592:23)
    at FlowParserMixin.parseUpdate (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10577:21)    
    at FlowParserMixin.parseMaybeUnary (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10557:23)    at FlowParserMixin.parseMaybeUnaryOrPrivate (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10411:61)
    at FlowParserMixin.parseExprOps (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10416:23)   


C:\Users\myuser\OneDrive\Рабочий стол\Work\merch-market\frontend>madge --extensions ts,vue --image graph.svg src/

✖ SyntaxError: Unexpected token (7:2)
    at constructor (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:362:19)
    at FlowParserMixin.raise (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:3259:19)
    at FlowParserMixin.unexpected (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:3279:16)      
    at FlowParserMixin.parseExprAtom (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10970:16)  
    at FlowParserMixin.parseExprAtom (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:6811:20)   
    at FlowParserMixin.parseExprSubscripts (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10592:23)
    at FlowParserMixin.parseUpdate (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10577:21)    
    at FlowParserMixin.parseMaybeUnary (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10557:23)    at FlowParserMixin.parseMaybeUnaryOrPrivate (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10411:61)
    at FlowParserMixin.parseExprOps (C:\Users\myuser\AppData\Roaming\npm\node_modules\madge\node_modules\@babel\parser\lib\index.js:10416:23)
@cainrus
Copy link

cainrus commented Nov 10, 2024

@Akindin try to add --ts-config path/to/your/tsconfig.json

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

2 participants