1

I am receiving an error when trying to use the serve command in Angular-CLI. The error I am receiving is this:

enter image description here

I tried to resolve these @types\jasmine\index.d issue by following the suggestions here : ERROR in [at-loader] node_modules\@types\jasmine , however the typescript version that I pinned in the package.json file is "2.1.6" in order to alleviate other issues I was experiencing in the past. Any suggestions?

Community
  • 1
  • 1
Douglas C Howe
  • 103
  • 1
  • 2
  • 9

1 Answers1

0

My webpack compiled successfully by making sure that the package.json file contained:

"@types/jasmine": "2.5.41"
"typescript": "^2.0.0"

After executing "npm install", everything worked.

Douglas C Howe
  • 103
  • 1
  • 2
  • 9
  • Your fix will work (because jasmine typings were updated) however the underlying cause is most likely because your angular-cli version is out of date. See this question: http://stackoverflow.com/questions/42595263/ng-serve-throwing-errors-with-simple-ng-new-angular-cli-project/42607000 – cconolly Mar 05 '17 at 10:22