2017-07-23 95 views
2

我试图创建一个角4 plunker包括NGRX \存储最新版本: https://embed.plnkr.co/cr4rCJ0hRVMwuLzKe4mg/角4,NGRX 店Plunker - 类型错误:store_1.StoreModule.provideStore不是一个函数

为了使用NGRX \店我已经添加了此行config.js文件:

'@ngrx/store': 'https://npmcdn.com/@ngrx/[email protected]', 

出于某种原因,我得到这个错误:

(SystemJS) TypeError: store_1.StoreModule.provideStore is not a function 

有人可以协助吗?

+0

在'4.0'他们已经彻底改变了存储配置。请阅读[** here **](https://stackoverflow.com/questions/45220561/providing-root-reducer-in-ngrx-store-4-0?answertab=votes#tab-top) – Aravind

+0

@Aravind但我仍然需要ngrx/store lib,对吧?你能否提供一名运动员? – ohadinho

+1

版本更新更改了其软件包。例如,有效载荷属性不再处于动作模型中 – Aravind

回答

相关问题