Skip to content

Getting not a generic errors... #235

Closed

Description

@born2net

I am follwoing the docs and yet getting:

node_modules/ng2-redux/lib/components/ng-redux.d.ts(39,29): error TS2315: Type 'Reducer' is not generic.

import {
applyMiddleware,
Store,
combineReducers,
compose,
createStore
} from 'redux';

import {
NgReduxModule,
NgRedux
} from "ng2-redux";


node_modules/ng2-redux/lib/components/ng-redux.d.ts(39,128): error TS2305: Module 'Redux' has no exported member 'StoreEnhancer'.

node_modules/ng2-redux/lib/components/ng-redux.d.ts(50,25): error TS2315: Type 'Store' is not generic.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(67,54): error TS2315: Type 'Dispatch' is not generic.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(67,84): error TS2305: Module 'Redux' has no exported member 'ActionCreatorsMapObject'.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(67,110): error TS2315: Type 'ActionCreator' is not generic.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(97,90): error TS2305: Module 'Redux' has no exported member 'Unsubscribe'.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(109,48): error TS2305: Module 'Redux' has no exported member 'Unsubscribe'.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(119,35): error TS2315: Type 'Reducer' is not generic.
node_modules/ng2-redux/lib/components/ng-redux.d.ts(123,32): error TS2305: Module 'Redux' has no exported member 'Action'.

errors...

regards

Sean

Activity

  1. SethDavenport commented on Oct 21, 2016

    @SethDavenport
    Member

    Are you able to link to a github repo where the problem is happening? Looks like there may be some kind of conflict with your typings.

  2. born2net commented on Oct 21, 2016

    @born2net
    Author

    I ended up cleaning all modules and re-installed, good now!
    closing, tx for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions