账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    react-native link 报错:Error: Maximum call stack size exceeded
    • 2018-04-27 00:00
    • 10
    40
    0

    react-native link 时报如下错误:

    错误:

    ➜  yeetiku-mobile-rn git:(master) ✗ react-native link   
    Scanning folders for symlinks in /Users/elone/project/yeetiku-mobile-rn/node_modules (9ms)
    rnpm-install ERR! Something went wrong while linking. Error: Maximum call stack size exceeded 
    Please file an issue here: https://github.com/facebook/react-native/issues 
    
    Maximum call stack size exceeded

    我用的是expo ,项目运行时一切正常。 但是在执行 $react-native link 时报这个错误,项目大了,完全不知道是哪里出了问题,难以定位。求教一下各位,应该如何去定位错误? 这个错误到底问题出在哪里?

    帖上我的package.json :

    {
      "name": "my-project",
      "version": "0.1.0",
      "private": true,
      "devDependencies": {
        "babel-eslint": "^7.2.1",
        "babel-jest": "19.0.0",
        "babel-plugin-flow-react-proptypes": "^0.21.0",
        "babel-plugin-transform-class-properties": "^6.24.1",
        "babel-plugin-transform-decorators-legacy": "^1.3.4",
        "babel-preset-react-native": "^1.9.1",
        "babel-preset-react-native-stage-0": "^1.0.1",
        "eslint": "^4.17.0",
        "eslint-config-airbnb": "^14.1.0",
        "eslint-plugin-babel": "^4.1.1",
        "eslint-plugin-import": "^2.2.0",
        "eslint-plugin-jsx-a11y": "^4.0.0",
        "eslint-plugin-react": "^6.10.3",
        "flow-bin": "^0.38.0",
        "jest": "22.2.1",
        "jest-expo": "25.0.0",
        "prop-types": "^15.6.1",
        "react-native-scripts": "0.0.29",
        "react-test-renderer": "^15.5.4"
      },
      "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
      "scripts": {
        "start": "react-native-scripts start",
        "eject": "react-native-scripts eject",
        "android": "react-native-scripts android",
        "ios": "react-native-scripts ios",
        "test": "node node_modules/jest/bin/jest.js --watch"
      },
      "jest": {
        "preset": "jest-expo"
      },
      "dependencies": {
        "axios": "^0.16.1",
        "expo": "26.0.0",
        "lodash.debounce": "^4.0.8",
        "lodash.isempty": "^4.4.0",
        "mobx": "^3.1.9",
        "mobx-react": "^4.2.2",
        "moment": "^2.21.0",
        "moment-timezone": "^0.5.14",
        "native-base": "^2.4.1",
        "numeral": "^2.0.6",
        "qs": "^6.4.0",
        "react": "16.3.0-alpha.1",
        "react-moment": "^0.7.0",
        "react-native": "https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz",
        "react-native-easy-comments": "^1.0.11",
        "react-native-modalbox": "^1.3.9",
        "react-native-progress": "^3.3.0",
        "react-native-radio-buttons": "1.0.0",
        "react-native-storage": "^0.2.2",
        "react-native-svg": "^5.5.1",
        "react-navigation": "^1.5.11",
        "styled-components": "^1.4.6"
      }
    }
    

    完全萌逼状态。

    0
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 10 元积分
        全部回答
    • 0
    • 稚与最初 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部