You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2022. It is now read-only.
The current Typescript version is returning this warning: DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Trying to update to a newer version breaks the code:
~/build/typescript/compiler.js:239
exports.oldGetLeadingCommentRangesOfNodeFromText = ts.getLeadingCommentRangesOfNodeFromText.bind(ts);
^
TypeError: Cannot read property 'bind' of undefined
at Object.<anonymous> (~/build/typescript/compiler.js:239:93)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (~/build/typescript/index.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:688:30)
Why Typescript is being extended by compiler.ts? Is possible to rewrite build.js without depending on those changes?