andreypopp / andreypopp/typescript-loader

Doesn't work with TS 1.5 alpha, which is a required dependency

Offen
#18 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
81
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm seeing this when compiling TS files:

```
ERROR in [file]
Module build failed: TypeError: Cannot read property 'text' of undefined
at Object.getLength (node_modules\typescript-loader\lib\TypeScriptWebpackHost.js:65:18)
at createLanguageServiceSourceFile (node_modules\typescript-loader\node_modules\typescript\bin\typescript.js:30185:97)
....
```

The issue here seems to be that Typescript's LS host interface has changed between 1.4.1 and 1.5 alpha. typescript-loader probably shouldn't have a required dependency on pre-release versions of typescript; I suggest changing the dependency from ^1.4.1 to ~1.4.1 until TS 1.5 comes out and any required updates to integration with the language services host interface can be made safely.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.