node-strava / node-strava-v3

API wrapper for Strava's v3 API, in Node
MIT License
356 stars 109 forks source link

Unable to resolve module 'fs' #66

Closed joostslijkoort closed 7 years ago

joostslijkoort commented 7 years ago

When using the dependency in a React Native project, i receive the following error:

Unable to resolve module 'fs' from node_modules/strava-v3/index.js

I am running node version v6.10.2.

msardi23 commented 7 years ago

Hitting the same issue, did you resolve this for your react native project?

joostslijkoort commented 7 years ago

No, i did not proceed.

msardi23 commented 7 years ago

Thanks. Actually thinking about this a little more, it does not really make sense to include this within the React Native project itself anyway. Looking at how the Strava authentication process works, you will pretty much need to have a small Node.js server anyway (or at least that is what I am finding with React Native + Expo) otherwise you simply cannot get the oauth process to run smoothly.

vlavrynovych commented 7 years ago

This module is definitely for backend. And fs is a native module in a node.js. I would say that this discussion can be closed