8000 Redux example error while running build · Issue #85 · vercel/next.js · GitHub
[go: up one dir, main page]

Skip to content

Redux example error while running build #85

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

Closed
VictorVolovik opened this issue Oct 26, 2016 · 2 comments
Closed

Redux example error while running build #85

VictorVolovik opened this issue Oct 26, 2016 · 2 comments

Comments

@VictorVolovik
Copy link
VictorVolovik commented Oct 26, 2016

Redux example

next build
next start

Error in browser console:

VM3895:2 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.

Is there a way to use NODE_ENV === 'production' with Next.js build/start scripts?

@nodegin
Copy link
Contributor
nodegin commented Oct 26, 2016

Same issue here, this error message (You are currently using minified code outside of NODE_ENV === 'production'.) were printed on the console in a production environment.

@nodegin
Copy link
Contributor
nodegin commented Oct 26, 2016

Have tried the following but no lucks:

  "scripts": {
    "dev": "next",
    "build": "NODE_ENV=production next build",
    "start": "NODE_ENV=production next start"
  },

@nodegin nodegin mentioned this issue Oct 26, 2016
nkzawa pushed a commit that referenced this issue Oct 26, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0