Question: *** process.env.ENV is not defined, assuming 'prod' env
See original GitHub issueStarting from version 1.0.5 I’ve started getting this warning message in the browser console.
I’ve been wondering on how to get rid of it. I know how to create a custom variable, but I’m not sure how the process.env.ENV
should be defined?
-
node -v
: 6.10.0 -
npm -v
: 5.0.4 -
npm ls react-scripts
: 1.0.5 -
Operating system: Windows 10
-
Browser and version (if relevant): Chrome
Cheers, Nemanja
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
process.env.ENV is not defined, assuming 'prod' env
My problem is if I use 9000 port (Given by yarn) unable to communicate with other microservices applications. Why am I getting the...
Read more >process.env.ENV is not defined, assuming 'prod' env - ionic-v3
I have this warning in my console every time I open my app. It is probably harmless, but I want to know why...
Read more >Using environment variables in React | by Sam Pakvis - Medium
I'm going to show you two ways to set and use environment variables for your React projects with webpack: using npm scripts and...
Read more >What is NODE_ENV in Node.js ? - GeeksforGeeks
If NODE_ENV is not set explicitly for the environment and accessed using process.env then it will be undefined. It is a bad idea...
Read more >Environment Variables in Next.js - Frontend Digest
The environment variable is not yet defined on the client, so undefined gets logged instead. You'll notice that the browser will log undefined...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mnemanja Even I had same issue, it was coming from one of the chrome extension (Grammarly for Chrome). Disabling the extension solved problem!!
@mnemanja This warning comes from the latest Chrome update. Any React app I use where the ENV variable is not defined produces this error for me.