angulartypescriptreduxionic2typescript1.8

Typing error "Default export of the module has or is using private name" - switch from typescript v1.8 to 2


I've updated my ionic app from beta 11 to rc0. So it means I've switched from angular2 rc4 to angular2 stable and from typescript 1.8 to 2.

I have a redux architecture and am using the Redux library.

This line of code is giving me the following error

export default combineReducers({
  user,songs,app
})

error TS4082: Default export of the module has or is using private name 'Reducer'.

Any idea on what's going on and how to solve this?


Solution

  • The error went away when I made an explicit import of Reducer from the redux library.

    import { combineReducers, Reducer } from 'redux'