TypeScript 4.0 broken on Node.js 6

Created on 21 Aug 2020  路  3Comments  路  Source: microsoft/TypeScript

> volta install node@6
success: installed and set [email protected] (with [email protected]) as default                                                                                                      
> tsc
\tsc.js:5962
    var textToKeyword = new ts.Map(ts.getEntries(textToKeywordObj));
                        ^

TypeError: Iterator value undefined is not an entry object
    at new Map (native)
    at ts (tsc.js:5962:25)
    at Object.<anonymous> (tsc.js:7884:3)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
Bug Crash

Most helpful comment

Node.js 6 is not even supported by the Node.js team: https://github.com/nodejs/Release#end-of-life-releases

All 3 comments

I didn't think we supported node 6 anymore?

We don't test on it; but it's only 4 years old; we're supposed to work in environments going back to ES5 though.

Node.js 6 is not even supported by the Node.js team: https://github.com/nodejs/Release#end-of-life-releases

Was this page helpful?
0 / 5 - 0 ratings