0

I'm getting the following error:

events.js:141
      throw er; // Unhandled 'error' event
      ^
TypeScript error: node_modules/gulp-typescript/release/compiler.d.ts(32,22): Error TS1005: '=' expected.

My gulpfile https://github.com/rtaycher/2048-Clone/blob/master/gulpfile.js

I also have a declaration file global.d.ts:

interface Array<T> {
    includes(searchElement: T) : boolean;
}

Some googling indicates that declaration files might cause issues.

2
  • 1
    what version of typescript are you using? Commented Jun 7, 2016 at 15:33
  • tsc Version 1.8.10 Commented Jun 7, 2016 at 21:19

1 Answer 1

2

Error TS1005: '=' expected

The error is two fold.

Personal opinion

Please use TypeScript nightlies otherwise it will always be an uphill / confusing battle. 🌹

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.