All Questions

15
votes
4answers
4390 views

Why does production build of React app (with Webpack and Babel) use wrong development env with HMR, which causes errors?

I'm trying to create a production build of my React project, but it picks the wrong configuration. In the development version I'm using HMR (Hot Module Replacement). This is configured in .babelrc,...
6
votes
1answers
2886 views

Getting webpack hot updating to work correctly in my isomorphic web app

I'm creating a webapp with a node/express backend and a react frontend. I got (I think) most of it up and running, but the last step of getting the browser to perform a hot refresh does not work as in...
8
votes
1answers
2445 views

How do I open react-native's dev menu on real device

I have seen already a number of border cases and strange developer interface. From the "shake your device", which is really impractical, specially with a tablet To working around Android studio to s...
2
votes
2answers
812 views

Angular 2 : Thoughs about HMR and @ngrx/store

Before starting, this link can be useful : what is the purpose of HMR ?. I do not have a deep experience in huge projects management / conception. I'm still to young to have a beautiful beard. So I a...
3
votes
1answers
375 views

When shouldn't you accept webpack Hot Module Reloading?

So with webpack, HMR will only work if you have this code in your module or a parent of your module: if (module.hot) { module.hot.accept() } Which makes me wonder why you would ever decline HMR i...
3
votes
2answers
1062 views

Can't get Webpack 2 HMR React to work

Currently I'm struggling to get HMR working in my Webpack 2 setup. I'll explain my entire setup so I hope this is enough for someone to understand what's happening. The structure of my project: conf...
0
votes
1answers
185 views

Aurelia, running webpack-dev-server --hot throws error on App Hot Update - 'Cannot read property 'status' of undefined'

I downloaded a fresh copy of the Aurelia Navigation Skeleton github repo . I execute the npm run server:dev:hot, which is mapped to cross-env NODE_ENV=development npm run webpack-dev-server -- --inli...
0
votes
1answers
212 views

Webpack adding duplicates of runtime into bundle

Does anyone know why I am getting duplicates of the webpack runtimes in the bundle? It's adding multiple numbers after the ? and the browser is seeing them as new files. dev-server.js? dev-server....

Previous Next