Closed chentsulin closed 8 years ago
It's because of https://github.com/chentsulin/electron-react-boilerplate/blob/6698a036ba529fdbd72298e1f378db1e127d43d8/webpack.config.production.js#L46. This plugin replaces __DEV__
with the NODE_ENV
check.
I'm getting a very similar error using React Native v0.43
Comment moved to new issue: https://github.com/4Catalyzer/babel-plugin-dev-expression/issues/4
Try to add this plugin into .babelrc but throw a TypeError, and everything works normally after removed it.
More detail Info: PR: https://github.com/chentsulin/electron-react-boilerplate/pull/238/files Travis Build: https://travis-ci.org/chentsulin/electron-react-boilerplate/jobs/135365374