我正在使用Redux和在设备上运行应用程序时使用Redux来尝试我的第一个react本机应用程序,
"UnableToResolveError:无法解析模块react redux/ C:\project\Testing\index.android.js: C:\project\Testing\index.android.js中的本机模块,在模块映射中或这些目录中不存在:C:\project\ these \node_modules\redux“
package.json:
{ “名称”:“测试”, “版本”:"0.0.1", “私人”:没错, “剧本”:{ “开始”:“节点节点_模块/反应-本机/本地-cli/cli.jsstart”, “测试”:“玩笑” }, “依赖关系”:{ “反应”:"15.4.1", “反应-原生”:"0.40.0", “反应-还原”:"^5.0.2", "redux":"^3.6.0“ "redux-thunk":"^2.2.0“ }, "devDependencies":{ "babel-jest":"18.0.0“ “babel-预设-反应-原生”:"1.9.1", “玩笑”:"18.1.0", “反应-测试-渲染器”:"15.4.1“ }, “笑话”:{ “预置”:“反应-本地人” } }
index.android.js:
import React, { AppRegistry } from 'react-native';
import { Provider } from 'react-redux/native';
import App from './src/containers/App';
import configStore from './src/stores/configStore';
const store = configStore();
var TestingApp = React.createClass({
render () {
return (
...
);
}
});
AppRegistry.registerComponent('TestingApp', () => TestingApp);请协助解决这个问题。
https://stackoverflow.com/questions/41788385
复制相似问题