q
Redux error
Copy code
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 setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.
Any idea why this could be happening? Do I need to
NODE_ENV=production npm run build
?
l
can you try that (might need cross-env)
q
Yep that fixed it
IIRC, next.js auto sets the node_env when building
l
Oh that's right
Perhaps we should do that too (we only do that for the env parsing), but haven't plumb that into the bundling yet
q
IMO it should be part of plasmo
l
@quiet-electrician-41149 can you try plasmo@canary
and see if it sets the NODE_ENV correctly
q
one sec
yep looks good
l
it works?
(like no cross-env at all?)
q
Yep
l
🎉
2 Views