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
Is 'fs' a dependency of this package? #172
Comments
I've tracked this to a Webpack issue that requires a weird work-around. Basically, adding I don't understand the cause or the fix, really, but this is clearly not an issue with this package. |
@trip-somers this issue might have some insight to the issue your running into, and maybe some ways to fix it #153 |
webpack includes DefinePlugin which accomplishes what dotenv would. Facebook's |
I'm confused about how I didn't see #153 before I posted this issue. That would have saved me some time... FWIW, I worked around this by moving the .env specific part of the code into an HTML template where I set a global JS variable for the value I need. Thanks for the comments. |
I faced |
It can't be on accident when the README tells you to install with |
common workaround, use https://github.com/mrsteele/dotenv-webpack |
thank you canercandan.. works a charm |
canercandan: THAT WAS EXCELLENT INFO!!! |
that doesn't seem to work in a React Native environment, but I did find: react-native-dotenv |
I do not have 'fs' installed, but when I use webpack, I get an error that 'fs' cannot be resolved. dotenv is the only new package added since my last webpack compile.
If it is a dependency, shouldn't it be listed in the package.json for the project? If it is not a dependency, can anyone give me a hint toward figuring out what I've done wrong?
The text was updated successfully, but these errors were encountered: