I am currently in the process of transitioning my Angular 1.5 project to use TypeScript. The project is compiled with webpack and even though I have included Angular type definitions in my package.json file as shown below,
"@types/angular": "~1.5.19",
"@types/angular-mocks": "~1.5.5",
"@types/angular-route": "~1.3.2",
"@types/jasmine": "~2.5.37",
"@types/jwt-decode": "~1.4.28",
"@types/lodash": "~4.14.38",
"@types/source-map": "~0.1.29",
"@types/uglify-js": "~2.6.28",
"angular": "~1.5.8",
"angular-mocks": "^1.6.1",
"angular-route": "~1.5.8",
I still require "angular": "~1.5.8" to be present. If it is removed, I encounter an error stating "Cannot resolve module 'angular'.
You can find a link to my repository here.
My question is, why do I still need JavaScript Angular if TypeScript is included?
A big thank you to all those who can shed some light on this matter!