I am currently in the process of upgrading my Typescript from version 1.8.10 to 4.6.4. Despite having the new version installed, I'm encountering numerous errors and I'm uncertain about the reason behind them.
Build:Invalid 'reference' directive syntax. C:\WebProjects\ITF\Web\node_modules\typescript\lib\lib.es6.d.ts Web 21
https://i.sstatic.net/N7xHA.png
package.json
"dependencies": {
"@angular/cli": "^6.2.1",
"@angular/common": "~2.2.0",
...
...
...
},
...
... // Remaining content in package.json
...
}
updated package
{
"name": "ITF",
"version": "1.0.0",
"scripts": {
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w"
},
"dependencies": {
... // Updated dependencies list
...
...
},
...
}