Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node_modules/@types/jasmine/index.d.ts: error TS1005: '=' expected

Tags:

angular

Earlier I was working with Angular2.3.1 and just updated package.json file using npm update --save to get updated version of Angular2 which is 2.4.7.

But it seems, for some reason, its breaking the code when I do npm start.

Its says

node_modules/@types/jasmine/index.d.ts(39,52): error TS1005: '=' expected

Now, I wonder how to fix it?

Any idea?

like image 671
Nikhil Shah Avatar asked Feb 18 '17 16:02

Nikhil Shah


1 Answers

After searching in google, came to know that latest version 2.5.43 of @types/jasmine is not compatible with typescript version 2.0.*.

So had to upgrade typescript to 2.1.6.

Read more here: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14569

like image 162
Nikhil Shah Avatar answered Oct 13 '22 03:10

Nikhil Shah