react-scanner icon indicating copy to clipboard operation
react-scanner copied to clipboard

Unexpected token '??=' error

Open mattyb opened this issue 1 year ago • 0 comments

Getting a syntax parsing error. I expect typescript-estree needs to be updated.

> react-scanner -c react-scanner.config.js

<redacted>/node_modules/react-scanner/node_modules/@typescript-eslint/typescript-estree/dist/convert.js:172
        result.range ??= (0, node_utils_1.getRange)(node, this.ast);
                     ^^^

SyntaxError: Unexpected token '??='
    at wrapSafe (internal/modules/cjs/loader.js:1029:16)
    at Module._compile (internal/modules/cjs/loader.js:1078:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:979:32)
    at Function.Module._load (internal/modules/cjs/loader.js:819:12)
    at Module.require (internal/modules/cjs/loader.js:1003:19)
    at require (internal/modules/cjs/helpers.js:107:18)
    at Object.<anonymous> (/Users/mbrennan/civis/popsicle/node_modules/react-scanner/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js:4:19)
    at Module._compile (internal/modules/cjs/loader.js:1114:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)

mattyb avatar Jan 10 '25 22:01 mattyb