0
我正在尝试将Redux集成到reactjs.I中,在开发工具中发现了以下错误消息。我可以知道这究竟是什么,我们该如何解决它?未捕获(承诺)错误:操作必须是普通对象。使用自定义中间件进行异步操作
Uncaught (in promise) Error: Actions must be plain objects. Use custom middleware for async actions.
at dispatch (createStore.js:158)
at eval (middleware.js:22)
at eval (middleware.js:67)
at Object.eval [as callApi] (bindActionCreators.js:5)
at HomePage.componentDidMount (eval at ./app/containers/HomePage/index.js (0.chunk.js:154), <anonymous>:101:28)
at HomePage.proxiedComponentDidMount (eval at ./node_modules/react-proxy/modules/createPrototypeProxy.js (0.chunk.js:943), <anonymous>:61:40)
at eval (ReactCompositeComponent.js:265)
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at eval (ReactCompositeComponent.js:264)
at CallbackQueue.notifyAll (CallbackQueue.js:76)
我在你的代码中看到一个文件文件:'''bindActionCreators.js''',所以你想使用动作创建器。你是否正确安装了'''''''''''''''''' https://github.com/gaearon/redux-thunk#installation – dsdenes