Skip to content
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

Lokka seems to be incompatible with React Native #19

Open
callmephilip opened this issue Jun 18, 2016 · 6 comments
Open

Lokka seems to be incompatible with React Native #19

callmephilip opened this issue Jun 18, 2016 · 6 comments

Comments

@callmephilip
Copy link

I am running into issues trying to get Lokka to work in React Native. Looks like it's due to some of the deps that node-fetch has (notably url, http)

@callmephilip
Copy link
Author

Related to this: kadirahq/lokka-transport-http#7

@AdamBrodzinski
Copy link

@callmephilip if you downgrade it to a previous version it will work. I'm using this in the latest RN:

"lokka": "^1.7.0",
"lokka-transport-http": "1.3.2",

@callmephilip
Copy link
Author

@AdamBrodzinski : yup. ended up doing just that. still felt like reporting this though

@joint-song
Copy link

@AdamBrodzinski not work.
Still error now.

Unable to resolve module url from /Users/jointsong/Documents/project/project/React/node_modules/node-fetch/index.js: Unable to find this module in its module map or any of the node_modules directories under /Users/node_modules/url and its parent directories

ReactNative 0.29
Node 4.2.0
npm 3.9.5

@AdamBrodzinski
Copy link

@joint-song node-fetch could have changed with the new react native... i think i remember there being some kind of change with the fetch pollyfill on the changelog. Might be worth checking out there.

I've moved on to using Apollo with the core API to swap out lokka since it's not being maintained and mutation variables are not working. Plus apollo-client has the react binding which can be nice too.

@joint-song
Copy link

@AdamBrodzinski OK.I'm trying Apollo.Thank you:)

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

3 participants