frankwallis / plugin-typescript

TypeScript loader for SystemJS
MIT License
248 stars 47 forks source link

Not compatible with Typescript 2.6.x package #210

Closed FostUK closed 7 years ago

FostUK commented 7 years ago

Using the example setup in this repo

and updating the package.json version to the latest versions:

"plugin-typescript": "^7.1.0",
"systemjs": "^0.20.19",
"typescript": "^2.6.1"

fails with the error message:

Uncaught (in promise) Error: Cannot read property 'map' of undefined

It appears to error on line 396 of plugin.js:

return options.lib.map(function (libName) { return "typescript/lib/lib." + libName + ".d.ts"; });

because the lib part of options is undefined.

I tried rolling back each and the latest typescript version seems to be the incompatibility.

Setting "typescript": "~2.5.0" (which will get typescript 2.5.3) fixes this.

frankwallis commented 7 years ago

Thanks for raising this, it is fixed in 7.1.1