[英]Fluxible createStore module not found/cannot be resolved?
I am getting an error in fluxible when attempting to create a store, specifically UserStore: 尝试创建商店(尤其是UserStore)时,我在fluentable中遇到错误:
Error: Cannot find module 'fluxible-app/utils/createStore' 错误:找不到模块'fluxible-app / utils / createStore'
How do I get around this? 我该如何解决?
The project/code I am working with is the following: 我正在使用的项目/代码如下:
https://github.com/jaxoncreed/the-next-facebook/blob/76b2651f7d04c3df569dfcf5f1460ed82678b807/stores/UserStore.js https://github.com/jaxoncreed/the-next-facebook/blob/76b2651f7d04c3df569dfcf5f1460ed82678b807/stores/UserStore.js
Looks like you have both fluxible-app
and fluxible
installed at the same time. 看起来您同时安装了
fluxible-app
和fluxible
。 fluxible-app
is the predecessor to fluxible
and is no longer necessary. fluxible-app
是前身fluxible
,不再必要。
You can get get createStore
via require('fluxible/addons/createStore')
instead of from fluxible-app. 您可以通过
require('fluxible/addons/createStore')
而不是fluxible-app获取createStore
。
See http://fluxible.io/addons/createStore.html 参见http://fluxible.io/addons/createStore.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.