Trato de correr npm startpara mi proyecto angular2
pero este error:
push_quick git:(master) npm start
> angular2-quickstart@1.0.0 start /Users/eladb/WorkspaceQa/SupporTool/src/main/webapp/html/push_quick
> tsc && concurrently tsc -w lite-server
app/shared/stringUtils.service.ts(8,9): error TS7005: Variable 'a' implicitly has an 'any[]' type.
npm ERR! Darwin 15.6.0
npm ERR! argv /usr/local/Cellar/node/6.3.1/bin/node /usr/local/bin/npm start
npm ERR! node v6.3.1
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 start: `tsc && concurrently tsc -w lite-server `
npm ERR! Exit status 2
npm ERR!
para este método:
@Injectable()
export class StringUtilsService {
mapToFormParamsString( dict : any) : string{
var a:any[] = []
for (var key in dict) {
if (dict.hasOwnProperty(key)) {
a.push(key+=+dict[key]);
}
}
return a.join(&);
}
}
¿Cómo puedo arreglar esto?
cambiar var a = string[] ovar a = any[]
no ayuda. mismo error de compilación.
por cierto, no tenía Thi error al compilar con ng starto en intellij
Está ng startllamando mpn starto viceversa?













