store icon indicating copy to clipboard operation
store copied to clipboard

Multiple Angular 6 error for generic types

Open ramuda opened this issue 7 years ago • 2 comments

This is a...

  • [ ] feature request
  • [x] bug report
  • [ ] usage question

What toolchain are you using for transpilation/bundling?

  • [ ] @angular/cli
  • [ ] Custom @ngTools/webpack
  • [x] Raw ngc
  • [ ] SystemJS
  • [ ] Rollup
  • [ ] Other

Environment

NodeJS Version: Typescript Version: Angular Version: @angular-redux/store version: @angular/cli version: (if applicable) OS:

Link to repo showing the issus

(optional, but helps a lot)

Expected Behaviour:

Actual Behaviour:

Stack Trace/Error Message:

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/fractal-reducer-map.d.ts:9:60 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/fractal-reducer-map.d.ts:9:86 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/fractal-reducer-map.d.ts:11:86 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/fractal-reducer-map.d.ts:13:87 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts:25:44 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts:40:44 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts:42:82 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/observable-store.d.ts:37:73 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:13:35 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:13:101 TS2315: Type 'Middleware' is not generic.

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:13:157 TS2314: Generic type 'StoreEnhancer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:14:27 TS2314: Generic type 'Store<S>' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:17:35 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/components/root-store.d.ts:20:80 TS2314: Generic type 'Reducer' requires 1 type argument(s).

ERROR in [at-loader] ./node_modules/@angular-redux/store/lib/src/decorators/helpers.d.ts:21:19 TS2314: Generic type 'Reducer' requires 1 type argument(s).

Additional Notes:

(optional)

ramuda avatar Jun 11 '18 12:06 ramuda

Me too. I have this Error :

ERROR in node_modules/apollo-angular/QueryRef.d.ts(14,33): error TS2314: Generic type 'FetchMoreQueryOptions<TVariables, K>' requires 2 type argument(s). node_modules/apollo-angular/QueryRef.d.ts(16,60): error TS2314: Generic type 'UpdateQueryOptions<TVariables>' requires 1 type argument(s).

TS V:2.7.2 Angular& rxjs: ^6.0.0 Cli:6.0.8 rxjs-compat: ^6.2.1

armanriazi avatar Jun 14 '18 11:06 armanriazi

I had to upgrade 'redux' in my package.json to version 4.0.0 and that solved above errors.

elsticky avatar Aug 08 '18 13:08 elsticky