You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm seeing an issue where production code contains multiple instances of __REACT_HOT_LOADER__.register(_default, 'default', '/Users/username/…'); when running npm run dist ... even on a fresh project.
I don't have a lot of knowledge about webpack configurations, so I had trouble tracing the issue. I'm hoping someone here can help. Thanks.
The text was updated successfully, but these errors were encountered:
I revisited this and tracked this issue to the process.env.NODE_ENV not being set to 'production' in webpack.config.js. See: gaearon/react-hot-loader#357.
To correct this, I updated conf/webpack/Dist.js from: get env() { return 'dist'; }
Hi, I'm seeing an issue where production code contains multiple instances of
__REACT_HOT_LOADER__.register(_default, 'default', '/Users/username/…');
when runningnpm run dist
... even on a fresh project.I don't have a lot of knowledge about webpack configurations, so I had trouble tracing the issue. I'm hoping someone here can help. Thanks.
The text was updated successfully, but these errors were encountered: