I tried to update TypeScript on the project. Prev. version was 1.5, now it's 2.7.2.
I'm using JetBrains WebStorm, and it have built in TypeScript checker. Per that checker - there was few incompatibility errors, but I resolved them all.
But when I'm trying to compile that TypeScript by the Gulp or Grunt - I have a ton of errors, and everyone of them is like:
Property 'Name' does not exist on type 'typeof Module'
All the project built by TS modules, and most of errors are on import statements, but some of them like:
Property 'send' does not exist on type 'RESTRequest'
But that property exists in extended class. So WebStorm see it properly, but grunt / gulp does not.
Where can the problem be?
package.json
Gulp deps
"gulp": "^3.9.1", "gulp-typescript": "^4.0.1", "typescript": "^2.7.2"
Grunt deps
"grunt": "1.0.2", "grunt-ts": "^6.0.0-beta.17" "typescript": "^2.7.2"
WebStorm is using 2.7.2 TS version and 8.9.4 Node for compile check.