angularHybrid icon indicating copy to clipboard operation
angularHybrid copied to clipboard

Errors on npm start

Open longinus89 opened this issue 8 years ago • 0 comments

When I try to use npm start, the shell returns 24 errors:

ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:232:41 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:233:41 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1252:41 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1253:41 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1972:55 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1976:54 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1986:55 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1991:57 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2005:48 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2088:22 
    TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:232:94 
    TS2314: Generic type 'IDirectiveFactory<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:233:96 
    TS2314: Generic type 'IDirectiveFactory<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1252:94 
    TS2314: Generic type 'IDirectiveFactory<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1253:96 
    TS2314: Generic type 'IDirectiveFactory<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1973:27 
    TS2314: Generic type 'IDirective<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1973:48 
    TS2314: Generic type 'IDirectiveLinkFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1987:15 
    TS2314: Generic type 'IDirectiveLinkFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:1988:16 
    TS2314: Generic type 'IDirectiveLinkFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2002:19 
    TS2314: Generic type 'IDirectiveLinkFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2002:46 
    TS2314: Generic type 'IDirectivePrePost<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2006:19 
    TS2314: Generic type 'IDirectiveCompileFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2015:16 
    TS2314: Generic type 'IDirectiveLinkFn<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2015:43 
    TS2314: Generic type 'IDirectivePrePost<TScope, IScope>' requires 2 type argument(s).
ERROR in [at-loader] ./node_modules/@types/angular/index.d.ts:2088:24 
    TS2368: Type parameter name cannot be 'any'

Resolved for me with: npm uninstall typescript. sudo npm install --save-dev typescript@'>=2.1.0 <2.4.0'

longinus89 avatar Jan 04 '18 11:01 longinus89