我已将我的 ionic 应用程序从 beta 11 更新到 rc0。所以这意味着我已经从 angular2 rc4 切换到 angular2 stable,从 typescript 1.8 切换到 2。
我有一个 redux 架构并且正在使用 Redux 库。
这行代码给我以下错误
export default combineReducers({
user,songs,app
})
error TS4082: Default export of the module has or is using private name 'Reducer'.
知道发生了什么以及如何解决这个问题吗?
最佳答案
当我从 redux 库中显式导入 Reducer 时,错误消失了。
import { combineReducers, Reducer } from 'redux'
关于angular - 输入错误 "Default export of the module has or is using private name"- 从 typescript v1.8 切换到 2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39807253/