0
我收到以下错误而失败:打字稿编译器奇怪的错误
events.js:141
throw er; // Unhandled 'error' event
^
TypeScript error: node_modules/gulp-typescript/release/compiler.d.ts(32,22): Error TS1005: '=' expected.
我gulpfile https://github.com/rtaycher/2048-Clone/blob/master/gulpfile.js
我也有一个声明文件global.d.ts:
interface Array<T> {
includes(searchElement: T) : boolean;
}
一些谷歌搜索表明声明文件可能会导致问题。
你正在使用什么版本的打字稿? –
tsc版本1.8.10 –