Versent / redux-crud

A set of standard actions and reducers for Redux CRUD Applications
MIT License
624 stars 54 forks source link

Unable to resolve module crypto from ...node_modules/redux-crud/node_modules/siu/node_modules/node-uuid/uuid.js #27

Closed breezykermo closed 7 years ago

breezykermo commented 8 years ago

I'm hitting this error when I try to run redux crud in my react native project. I've tried a range of different things, such as installing crypto within the project scope, installing crypto within redux-crud, installing crypto within siu's scope, installing crypto globally -- but nothing seems to eliminate the error. I'm wondering if you've encountered this before, or whether you might know anything about the cause?

The code runs fine in my test suite. Is this something to do with redux-crud's compatibility with react-native? My package.json dependencies are listed below, for reference.

  "dependencies": {
    "immutable": "^3.7.6",
    "react": "^0.14.8",
    "react-native": "^0.23.1",
    "react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
    "react-native-fs": "^1.3.0",
    "react-native-i18n": "0.0.8",
    "react-native-ibeacon": "^0.6.0",
    "react-native-maps": "^0.3.0",
    "react-native-share": "^1.0.4",
    "react-native-sound": "^0.8.1",
    "react-native-vector-icons": "^1.3.0",
    "react-native-video": "^0.7.1",
    "react-redux": "^4.4.0",
    "realm": "^0.11.1",
    "redux": "^3.3.1",
    "redux-crud": "^1.0.0",
    "redux-thunk": "^2.0.1"
  },
  "devDependencies": {
    "async": "^2.0.0-rc.1",
    "babel-cli": "^6.6.5",
    "babel-core": "^6.5.2",
    "babel-eslint": "^6.0.2",
    "babel-plugin-transform-strict-mode": "^6.5.2",
    "babel-preset-react-native": "^1.4.0",
    "chai": "^3.5.0",
    "enzyme": "^2.0.0",
    "esdoc": "^0.4.5",
    "esdoc-es7-plugin": "0.0.3",
    "eslint": "^2.2.0",
    "eslint-config-airbnb": "^6.0.1",
    "eslint-plugin-react": "^4.0.0",
    "eslint-plugin-react-native": "^1.0.0",
    "estraverse-fb": "^1.3.1",
    "glob": "^7.0.0",
    "js-yaml": "^3.5.3",
    "mocha": "^2.4.5",
    "pre-commit": "^1.1.2",
    "react": "^0.14.8",
    "react-addons-test-utils": "^0.14.7",
    "react-dom": "^0.14.7",
    "react-native-mock": "0.0.7",
    "redux-mock-store": "^1.0.2",
    "rimraf": "^2.5.2",
    "sinon": "^1.17.3",
    "sinon-chai": "^2.8.0",
    "svg-font-create": "0.0.5",
    "svg2ttf": "^4.0.0",
    "svgo": "^0.6.1"
  }
sporto commented 7 years ago

Sui has been removed in v2