-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Package requires Node Module 'fs', which is not part of RN #96
Comments
This is because you have to use |
try :
this is extra step of above steps : *you'll also getting error of try :
umm maybe this also a extra step, because u'll also facing error from following the if u got error this is only will fixed the error, i still could not use the react-native-dotenv package
|
oh, as this guy comment #52 (comment) i was put this configuration in .babelrc
after i followed the guy's comment and add that config to .babel-config.js and it became like this
and yea its all working perfectly now, cheers all |
no need to have extra configuration, just |
actually, really ? i mean i tried to only "just
this error is still occured on me |
@LogicAnalysis congratulations and thank you for your first ticket ever on Github! This issue has come up numerous times so I've added the solution to the troubleshooting page. If there are any other issues please feel free to open a new ticket. |
Am I missing something? The first line of code in this package is to require 'fs', which is not even part of React Native. Is this only meant to run on Node? How would it run on a physical device?
Anyways, here's the error code:
"The package at "node_modules/react-native-dotenv/index.js" attempted to import the Node standard library module "fs"."
The text was updated successfully, but these errors were encountered: