找不到变量:Store

时间:2016-03-24 15:10:53

标签: react-native

我在3个月后开始使用本机应用,我们目前正在使用v0.21

在尝试升级应用以修复错误时,我:

  • brew update && brew upgrade
  • package.json
  • 进行了一些更改
  • npm install
  • 运行npm update -g react-native-cli以获取本地v0.1.10

此时我尝试运行该应用,但无论是在iOS还是Android中,我都遇到了同样的错误: React native bug

所以逻辑上我回到了origin/master,删除了我的node_modules文件夹,并重新安装了react-native-cli v0.1.7 ......但是我得到了同样的错误!!

我的package.json看起来像那样:

{
  "name": "XXXXXX",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "awesome-phonenumber": "^1.0.10",
    "buffer": "^3.6.0",
    "immutable": "^3.7.6",
    "react-native": "^0.21.0",
    "react-native-animatable": "^0.5.0",
    "react-native-blur": "^0.7.10",
    "react-native-button": "^1.3.1",
    "react-native-code-push": "^1.5.3-beta",
    "react-native-date": "^1.0.3",
    "react-native-device-info": "^0.6.0",
    "react-native-drawer-layout": "^0.4.0",
    "react-native-facebook-ios": "file:lib/react-native-facebook-ios",
    "react-native-facebook-login": "^1.0.2",
    "react-native-floating-label-text-input": "0.0.8",
    "react-native-google-places-autocomplete": "^1.1.6",
    "react-native-material-kit": "^0.2.4",
    "react-native-modalbox": "^1.3.1",
    "react-native-onesignal": "file:lib/react-native-onesignal",
    "react-native-parallax": "^0.2.2",
    "react-native-parallax-scroll-view": "^0.16.17",
    "react-native-router-flux": "^2.2.6",
    "react-native-scrollable-tab-view": "^0.3.5",
    "react-native-sync-now-android": "file:lib/react-native-sync-now-android",
    "react-native-sync-now-ios": "file:lib/react-native-sync-now-ios",
    "react-native-timer-ios": "file:lib/react-native-timer-ios",
    "react-native-twitter-ios": "file:lib/react-native-twitter-ios",
    "react-native-twitter-login": "0.0.2",
    "react-native-utils": "^1.0.1",
    "react-native-vector-icons": "^1.0.3",
    "react-native-webrtc": "^0.1.5",
    "react-redux": "^3.1.0",
    "redux": "^3.0.2",
    "redux-logger": "^2.0.1",
    "redux-thunk": "^1.0.0",
    "rnpm": "^1.4.1"
  },
  "scripts": {
    "start": "react-native start",
    "postinstall": "sh scripts/postinstall.sh"
  },
  "devDependencies": {
    "react-native-cli": "^0.1.7"
  }
}

我确定问题出在我的工具版本中,因为一切都发生在我更新它们之后,代码是相同的

以下是版本:

  • Watchman 4.4.0
  • Flow 0.22.1
  • react-native-cli 0.1.7

有人可以帮我这个吗?

1 个答案:

答案 0 :(得分:2)

修正了它!

因为我必须升级包装商,所以它不喜欢:

 dt = 0.01;
 t=0:dt:10;
 K = zeros(size(t)); %initialize it
 K(1) = 3;%setup initial value 

 for ind=2:length(t)
     K(ind) = K(ind-1)+dt*dK/dt; %where t in your dKdt is subbed by t(ind);
 end

 figure,plot(t,K);

它更喜欢:

export default variable = {};

此时已经失去了24小时......