Skip to content
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

Redux is using the wrong webpack NODE_ENV #35

Closed
udi-d opened this issue Jan 9, 2018 · 5 comments
Closed

Redux is using the wrong webpack NODE_ENV #35

udi-d opened this issue Jan 9, 2018 · 5 comments

Comments

@udi-d
Copy link

udi-d commented Jan 9, 2018

after building and deploying the production bundle, I get this error:

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 (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.

anyone else encountered it?

@facundobringas
Copy link
Contributor

facundobringas commented Jan 16, 2018

facing same problem.

@thomas-negrault
Copy link
Contributor

I have the same problem when building on production, I'm not a pro on Webpack config but the DefinePlugin seems to be the solution:
SO: Passing environment-dependent variables in webpack

If anyone could look into it and help us on this issue it would be great

@udi-d
Copy link
Author

udi-d commented Feb 15, 2018

Define plugin wont help, because the process.env.NODE_ENV is correct.
It seems that Redux version which is bundled inside the project doesn't recognize it.

@mcallegari10 mcallegari10 mentioned this issue Apr 13, 2018
@mcallegari10
Copy link
Contributor

Closing due to merged solution. If the problem persists, please feel free to reopen this issue. Thanks! 😄

@udi-d
Copy link
Author

udi-d commented May 23, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants