-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
React DevTools Chrome extension warns that React is in development mode even when NODE_ENV=production #1975
Comments
Have you build your app with "next build" |
Yep, I tried |
I would like to have a look at this. |
Thanks, I'd appreciate that. I've tried everything I could think of, right down to inspecting the minified JS (although, I'm not really sure what's different about prod vs dev react, so I wasn't entirely sure what to look for...) FWIW, there are a couple of places in the minified JS where it checks {
"title": "browser",
"browser": true,
"env": {},
"argv": [],
"version": "",
"versions": {}
} (Presumably |
This is a result of the Try to use something else for that. |
Oh, gosh. Thank you! And, I'm sorry for wasting your time on something that really had nothing to do with you... |
No problem. I was a good learning experience. |
I'm not sure what the root cause is here, but when I view my site in Chrome, the React DevTools extension warns that it's in development mode.
I have:
NODE_ENV=production
in mynpm start
scriptprocess.env.NODE_ENV
in my express server.js script and setdev
to false fornext({ dev })
NODE_ENV=production
for the build script, but it didn't seem to make any difference.Am I missing anything?
My code is at https://github.com/nfriedly/user-agent.io if you'd like to take a look. I get the same warning both locally and when running on Bluemix.
The text was updated successfully, but these errors were encountered: