Reputation: 23
I am currently learning Angular 2. To setup the environment, I installed NodeJS and used the Angular Quickstart process from Github (http://github.com/angular/quickstart). After that, opened GitBash and navigated to an empty folder in my C:\ Drive and cloned Quickstart there, as instructed. I installed the npm server thingy, using "npm install", and then I started the server that Angular runs on, using "npm start". Everything was fine until I ended the process, using CTRL + C. When I attempted to restart the server, using "npm start" again, in GitShell, I got errors:
Is there a proper process to terminating, or restarting the server? Am I using the wrong command?
Upvotes: 0
Views: 163
Reputation: 30330
The relevant line is a TypeScript compiler error:
error TS7006: Parameter i implicity has any type
.
There is a variable called i
that is declared without a Type annotation, and Typescript wasn't able to infer the type.
Your TypeScript config has noImplicitAny=true
, which causes TypeScript to treat that as an error.
To progress you could:
i
variablenoImplicitAny
in tsconfig.json
See TypeScript compiler options for more detail about noImplicitAny
.
Upvotes: 1