2017-07-23 92 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

回答

相關問題