Skip to content

Doesn't work with RN 0.43 #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pewh opened this issue Apr 4, 2017 · 9 comments · Fixed by #519
Closed

Doesn't work with RN 0.43 #418

pewh opened this issue Apr 4, 2017 · 9 comments · Fixed by #519

Comments

@pewh
Copy link

pewh commented Apr 4, 2017

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

@andrewimm
Copy link
Contributor

Will look into this when I have some time

@pewh
Copy link
Author

pewh commented Apr 4, 2017

Nevermind. I already fix this by following #342 (comment). Thank you.

@pewh pewh closed this as completed Apr 4, 2017
@flovilmart flovilmart reopened this Apr 15, 2017
@flovilmart
Copy link
Contributor

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

@andrewimm
Copy link
Contributor

andrewimm commented Apr 15, 2017

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

@flovilmart
Copy link
Contributor

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

@oallouch
Copy link
Contributor

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

@flovilmart
Copy link
Contributor

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

@oallouch
Copy link
Contributor

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.

@jamlfy
Copy link

jamlfy commented Apr 29, 2017

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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants