-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
This is driving me crazy: Error: Failed to find .env file at path: ./devOps/env/env.js #369
Comments
same here |
Also my react app is completely ignoring env-cmd with a simple env-cmd -f .env.android react scripts build. |
same. works for |
Are you using this in an ESM setup? It seems the package currently doesn't support ESM and in this case fails with this error and hides the original one:
|
Same here.
|
I renamed the file to |
Just finished updating the current |
I have created a env.js file that i want to use with dynamic vars (that's why i'm using js)
I'm using the same logic in many other apps and it works fine with env-cmd
But on a specific project that has the same files and same folder structure, basically everything is the same. It gives this error:
Error: Failed to find .env file at path: ./devOps/env/env.js
Everything i do i doens't work, i removed node_modules, package-lock, gitignore, dockerignore, every .ignore
running this command: env-cmd -f ./devOps/env/env.js react-scripts start
what am I doing wrong?
The text was updated successfully, but these errors were encountered: