我正在尝试将我的angular 2应用程序升级到angular7。我根据以下文章运行了所有命令。 https://medium.com/@jeroenouw/upgrade-to-angular-7-beta-within-10-minutes-c14fc380edd
但是我正在获得例外。当我运行“ npm install”时。
TSError:⨯无法编译TypeScript: gulpfile.ts(22,5):错误TS2349:无法调用类型缺少调用签名的表达式。输入'{默认值:IRunSequence; use(gulp:Gulp):IRunSequence; }'没有兼容的呼叫签名。
at createTSError (/Users/..../CODE/../node_modules/ts-node/src/index.ts:228:12)
at getOutput (/Users/..../CODE/../node_modules/ts-node/src/index.ts:334:40)
at Object.compile (/Users/....../CODE/../node_modules/ts-node/src/index.ts:367:11)
at Module.m._compile (/Users/...../CODE/../node_modules/ts-node/src/index.ts:413:43)
at Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/...../CODE/.../node_modules/ts-node/src/index.ts:416:12)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
at Module.require (internal/modules/cjs/loader.js:665:17)
我收到异常的gulpfile.ts的代码段。
let firstRun = true;
gulp.task('clean.once', (done: any) => {
if (firstRun) {
firstRun = false;
//BELOW IS THE LINE WHERE IT HAS COMPILATION
runSequence('check.tools', 'clean.dev', 'clean.coverage', done);
} else {
util.log('Skipping clean on rebuild');
done();
}