electron-webpack
electron-webpack copied to clipboard
Error: Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are "development", "test", and "production". Instead, received: "renderer".
Hey guys, I'm trying to compile my project but I get this when I run electron-webpack.
I also tried adding NODE_ENV=production electron-webpack but it's still a no go. Anyone know what's up?
I will check CET evening. Do you use electron-webppack 2.0.0?
Same issue happening to me. @develar any fix for that?
Bumping this, since I have the same issue. Any help?
@ckrodrigues @paolostyle @lightninglu10 I was able to get around this by setting
process.env.BABEL_ENV = config.mode;
In my custom Webpack config function. Not sure if that would work for y'all but I do assume setting the BABEL_ENV will get around this issue.