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
Default import is not supported #113
Comments
Hi @whalemare unfortunately this is not something that is even potentially possible. Even the regular Are you trying to do error handling for this module? Maybe there's a misunderstanding. |
Hi. Thank you for quick answer. |
@whalemare lmk if you need any more help or if I can close this |
We can close it, thank you |
@goatandsheep dotenv seems to put all the variables into process.env without whitelisting. The problem is when you're importing all env vars into a file. For my current production app, this is 50+ something variables (feature flags). With regular dotenv, I can access all vars under Is this something we can look into? (inserting vars into process.env) |
No not really possible to push something across all versions because it'll overwrite a lot of built in values from react and react native and stuff. This library used to not touch process.env at all (would still have lots of values). Now it adds to it whatever people ask. However for your own app you can look into the option to use allowList in your build options |
Describe the bug
I was trying export all config keys as default, but have the next error:
To Reproduce
Code to reproduce the behavior:
Expected behavior
Expected that I can export all keys in one single const variable, to use it anywhere I want.
The text was updated successfully, but these errors were encountered: