angular-redux / store

Angular 2+ bindings for Redux
MIT License
1.34k stars 205 forks source link

Multiple Angular 6 error for generic types #532

Open ramuda opened 6 years ago

ramuda commented 6 years ago

This is a...

What toolchain are you using for transpilation/bundling?

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' 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)

armanriazi commented 6 years ago

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' requires 1 type argument(s).

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

elsticky commented 5 years ago

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