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
Unable to resolve module fs
#32
Comments
@goatandsheep and @twinedo This seems to stem from not renaming the import from 'react-native-dotenv' to '@env' Maybe something to put in the migration guide or even a quick FAQ on the Readme. |
Thank you for your response. And sorry for super late response. |
@twinedo awesome! I'm so glad we were able to resolve this. You said you installed fs as an additional module? As in you used the fs built into node or a different npm module? |
i use yarn. when i check folder node_modules, there is no fs module. I don't why. So i install it 😁 |
Well I'm happy it worked for you. fs is an empty module 🤡 I'm going to close this. let me know if I need to reopen. |
I had same issue after upgrade react-native-dotenv. |
Yea too bad this isn't documented properly. It's misleading to think we've got an option to not set the modulename. |
listing this as a dev dependency does nothing to resolve the issue as stated in #20 |
Feel free to open a PR if you have any documentation suggestions. I update the docs every few months including all suggestions. Saying it's bad unfortunately doesn't help. This is an old ticket so please continue at #392 . Locking. |
I have issue like this:
error: Error: Unable to resolve module
fs
fromnode_modules/react-native-dotenv/index.js
: fs could not be found within the project.somebody can help???
The text was updated successfully, but these errors were encountered: