2016-10-05 8 views
0

に変換されます.gulp-typescriptを2から3にアップグレードすると、これらのエラーが発生し始めました。gulp-typescriptを2から3にアップグレードすると、未知のコンパイラオプション

error TS5023: Unknown compiler option '_readableState'. 
error TS5023: Unknown compiler option 'readable'. 
error TS5023: Unknown compiler option 'domain'. 
error TS5023: Unknown compiler option '_events'. 
error TS5023: Unknown compiler option '_eventsCount'. 
error TS5023: Unknown compiler option '_maxListeners'. 
error TS5023: Unknown compiler option '_writableState'. 
error TS5023: Unknown compiler option 'writable'. 
error TS5023: Unknown compiler option 'allowHalfOpen'. 
error TS5023: Unknown compiler option 'js'. 
error TS5023: Unknown compiler option 'dts'. 
error TS5024: Compiler option 'project' requires a value of type string. 

私には理由が分かりません。私はそれらのコンパイラオプションを持っていません。

私はupgrade guideを通過しましたが、それは役に立ちませんでした。 _readableStateなど

文字列は、これは、Windows 10およびWindows Server 2008R2のマシン上で発生含まNPMパッケージreadable-stream

に由来すると思われます。

Gulpfile.jsの関連部分は、私がissue on gulp-typescriptとしてこれを報告してきたこの

var gulp = require("gulp"); 
var plugins = require("gulp-load-plugins")({ lazy: false }); 

var tsProjectOptions = { 
    removeComments: false, 
    target: "ES5", 
    module: "commonjs", 
    noResolve: false, 
    noImplicitAny: false 
}; 

var tsProjectUnittests = plugins.typescript.createProject(tsProjectOptions); 

var typescriptGlob = [ 
    "./**/*.ts", "!./node_modules/**", "!./packages/**" 
]; 

gulp.task("compile-typescript", function() { 
    return gulp.src(typescriptGlob) 
     .pipe(plugins.sourcemaps.init()) 
     .pipe(plugins.typescript(tsProjectUnittests(plugins.typescript.reporter.longReporter()))) 
     .pipe(plugins.sourcemaps.write({ 
      sourceRoot: "./" 
     })) 
     .pipe(gulp.dest("./")); 
}); 

のように見えます。

答えて

0

私は今、次の作品

gulp.task("compile-typescript", function() { 
    return gulp.src(typescriptGlob) 
     .pipe(plugins.sourcemaps.init()) 
     .pipe(tsProjectUnittests(plugins.typescript.reporter.longReporter())) 
     .pipe(plugins.sourcemaps.write({ 
      sourceRoot: "./" 
     })) 
     .pipe(gulp.dest("./")); 
}); 
、私が正しくtsProject構文をアップグレードしなかったことを実現
関連する問題