Parse-sdk-js: Doesn't work with RN 0.43

Created on 4 Apr 2017  路  9Comments  路  Source: parse-community/Parse-SDK-JS

When I start RN package, it shows an error:

Loading dependency graph, done.
error: bundling: UnableToResolveError: Unable to resolve module `react-native/Libraries/react-native/react-native.js` from `/home/ryan/Documents/StikerMob/node_modules/parse/lib/react-native/StorageController.re
act-native.js`: Module does not exist in the module map or in these directories:
  /home/ryan/Documents/StikerMob/node_modules/react-native/Libraries/react-native

Most helpful comment

@pewh let's keep this open as this require a correct fix.

All 9 comments

Will look into this when I have some time

Nevermind. I already fix this by following https://github.com/ParsePlatform/Parse-SDK-JS/issues/342#issuecomment-243890242. Thank you.

@pewh let's keep this open as this require a correct fix.

If you're using RN, a library like https://github.com/andrewimm/parse-lite is much better suited to React applications.

@andrewimm that's a really nice little lib you got here :)

Whi not give this lib a boost buy adding it as an official client and adding its doc on http://parseplatform.org/ ?

@oallouch the docs and homepage repos are open source! Feel free to add it there :)

This looks very interesting, even if I'm not using it right now. @andrewimm I can only imagine the need for a lot more utility functions to manager all the local Pointer resolutions. For instance, in my app, I have a tree of Parse.Objects and the official js sdk makes it very easy to include nested branches.
Anyway, I still feel guilty when storing Parse.Objects in my Redux store...next to an artificial version number that I increment whenever I modify the Parse.Object, so that my connected components update themselves.

The problem is in the file APP/node_modules/parse/lib/react-native/StorageController.react-native.js:14 is

import { AsyncStorage } from 'react-native/Libraries/react-native/react-native.js';

But the libraries, no exists... Is exist

import { AsyncStorage } from 'react-native';

Even though this error is corrected it generates this

error: bundling: UnableToResolveError: Unable to resolve module `events` from `APP/node_modules/parse/lib/browser/EventEmitter.js`: Module does not exist in the module map or in these directories:
  APP/node_modules

The problem is that of react-native compatibility

        "parse": "^1.9.2",
        "parse-react": "^0.5.2",
        "react": "16.0.0-alpha.6",
        "react-native": "0.43.4",
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Simone-cogno picture Simone-cogno  路  7Comments

dblythy picture dblythy  路  4Comments

Jonarod picture Jonarod  路  6Comments

oallouch picture oallouch  路  4Comments

fdidron picture fdidron  路  4Comments