TooTallNate / node-bindings

Helper module for loading your native module's `.node` file
MIT License
412 stars 95 forks source link

Does not work in create-react-app due to stubbed out 'fs' module (Throws 'exists' is not a function) #49

Open riyavsinha opened 6 years ago

riyavsinha commented 6 years ago

As per https://github.com/facebook/create-react-app/issues/3074, the 'fs' module is stubbed out as empty when using create-react-app (printing an imported 'fs' module returns {}).

Importing modules using this module as a dependency therefore always throw with TypeError: 'exists' is not a function.