Meteor, React and Browserify

I have been chasing down an odd issue with a Meteor/React app I am building. The error showing up in the browser console is:


You are currently using minified code outside of NODE_ENV === ‘production’. This means that you are running a slower development build of Redux. You can use loose-envify ( for browserify or DefinePlugin for webpack ( to ensure you have the correct code for your production build.


I am using this amazing component, which uses Redux that is giving the error:


To use these types of components from the npm repo on a client, we need to follow this process:

The error is happening because we are not fully processing the code and replacing any environment variables. Loose-envify to the rescue.

The fix is to add the npm file to our project:


And the final app.browserify.options.json file will be (this is stored in client/lib):


Leave a Comment