Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Requiring unknown module "fs" #1874

Closed
jrmcdona opened this issue Sep 9, 2016 · 3 comments
Closed

Requiring unknown module "fs" #1874

jrmcdona opened this issue Sep 9, 2016 · 3 comments

Comments

@jrmcdona
Copy link

jrmcdona commented Sep 9, 2016

I am trying to get push notifications working using azure notification hub. I have installed npm azure which installs many dependencies.

When I run the app I cannot get passed this error.
Requiring unknown module "fs".

It is coming from this file:
node_modules\azure-storage\lib\common\util\utility.js

And this line of code seems to be the issue;
var fs = require('fs');

What do I need to install to get this to work and is will this all work with react-native?

Thanks

@amarzavery
Copy link
Contributor

'fs' is a native node.js module and should be present if you have node.js installed on your system

@jrmcdona
Copy link
Author

jrmcdona commented Sep 9, 2016

Thanks amarzavery. Doesn't react-native run using node.js? I am running apps in the Android emulator and so far not having any trouble with that. So I am confused why the issue now. Thanks

@amarzavery
Copy link
Contributor

I am not very well versed with react native, however some basic searching gave me this SO link which might be helpful to you.

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

No branches or pull requests

2 participants