-
Notifications
You must be signed in to change notification settings - Fork 74
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
dotenv-webpack not working. env file not loaded. variables are undefined #496
Comments
Running into this as well; it seems like it's not loading the |
Have you tried this? package.json: webpack config:
|
for me this is not working right. i had some success installing accessible but remained empty. the path was set up as explained above. |
The problem might be legitimate. I don’t have a lot of experience with module npm support. Anyone else here able to check out my code to see what’s going on? also, if anyone has a simplified boilerplate here I could download that and give it a try. |
using esm module based project
dotenv-webpack
does not prevent the app from starting, any env variable ends up beeing undefined.other plugins work as expected, thats why i dont assume my
webpack.config.ts
to be wrongi load it as usual
as
new Dotenv()
entry in the plugin section:The text was updated successfully, but these errors were encountered: