-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Warning for using development build in production #10768
Comments
Can you point me to a website reproducing this? |
@gaearon Thanks for the quick reply. Here is an example |
I had a look at
our config looked like this (using also bundler = browserify(config)
bundler.transform('browserify-shim')
bundler.transform('coffeeify', {sourceMap: false}) I changed the config like this
I tried to use |
Following the troubleshooting steps at facebook/react-devtools#692, the warning in the console is correct, React is not being minified properly The reason why the browser icon shows the 'production' icon is because another third-party library you are using (Help Scout) also uses React. If you block https://djtflbt20bdde.cloudfront.net or don't load their library, then the extension correctly detects the 'development build'. The duplicate React issue is discussed/solved at facebook/react-devtools#700 / facebook/react-devtools#714 |
OK, thanks for investigating. I think we found a solution for us finally. |
Hi, we are seeing this error
but the React Developer Tools is saying this
We use
NODE_ENV=production
to build our js file (using browserify) and I also tried outenvify
but no luck. The red warning doesn't disappear.The text was updated successfully, but these errors were encountered: