Skip to content

Setting Parse.serverURL not working #491

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
sebGuerrero opened this issue Oct 18, 2017 · 1 comment
Closed

Setting Parse.serverURL not working #491

sebGuerrero opened this issue Oct 18, 2017 · 1 comment

Comments

@sebGuerrero
Copy link

sebGuerrero commented Oct 18, 2017

Hi, I created a react native project.

My dependencies are:

"dependencies": { "events": "^1.1.1", "history": "^4.7.2", "parse": "^1.10.0", "react": "16.0.0", "react-native": "^0.48.4", "react-native-splash-screen": "^3.0.1", "react-redux": "^5.0.6", "react-router-native": "^4.2.0", "react-router-redux": "^5.0.0-alpha.6", "redux": "^3.7.2", "redux-persist": "^4.10.1", "redux-thunk": "^2.2.0", "timers": "^0.1.1" }

So basically when I tried to configure the Parse connections I did it on App.js on componentWillMount(), like so:

componentWillMount(){ Parse.initialize("AppId","JSKey"); Parse.serverURL = 'http://parseServer:1337/parse' }

Everything works fine until Parse.intialize, but when trying to set the serverURL I get this error:

https://api.parse.com/1 is not a function (evaluating '_reactNative3.default.serverURL('http://parseServer:1337/parse')') componentWillMount

@stale
Copy link

stale bot commented Feb 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants