tusbar/babel-plugin-dotenv-import

React Native cannot load module fs (file system)

Closed this issue · 4 comments

Hello @danactive

I’m not sure I understand this error, this is a babel plugin so it should only be a dependency that runs on your machine and not in your app?

AFAIK React Native runs a web server in the app without access to Node.js features like the file system.

By reading your reply, maybe this module is intended for build time and not execution time like I'm trying

Yeah of course you wouldn’t have access to the file system in an iOS app. 🍎

This module is indeed intended for build time, like all babel modules. :)

Closing ticket, noting this module does not support React Native runtime