Questions tagged [webpack-hmr]
343 questions
0
votes
0 answers
Asp.Net 5 with Angular2: Webpack + HMR?
I initially tested Asp.net Core + Angular2 and I was quite happy with it, but I got to the point I've to use external library(in my case, iTextSharp) in a project referenced by the web app. I didn't found a workaround to use library of the .Net…

J4N
- 19,480
- 39
- 187
- 340
0
votes
1 answer
How to run Webpack Hot Module Replacement (HMR) in Production
Id like to run HMR in production, using it for seamless application updates. I cannot seem to find any docs or tutorials regarding how to do this.
My setup is currently "serverless", and statics are served from AWS S3. My first thought is i would…

donny5561
- 21
- 4
0
votes
1 answer
Can webpack only print emmited files info while webpack rebuilt?
I have use these package to comply webpack HMR:
webpack@2.2.1
webpack-dev-middleware@1.10.1
webpack-hot-middleware@2.17.1
webpack stats config:
stats: {
assetsSort: 'name',
children: false,
chunks: false,
colors: true,
…

wenkang lin
- 119
- 1
- 1
- 10
0
votes
2 answers
React-router Webpack HMR. The root route must render a single element
I am trying to figure out how the react-router works inside the AppContainer when HMR is enable and stuck upon the following error. Can you please explain what the hack is going on?
Invariant Violation: The root route must render a single…

volna
- 2,452
- 4
- 25
- 61
0
votes
1 answer
Webpack HMR doesn't work with Node-Webkit/NW.js
What I have
I created a small Webpack HMR Hello World with the following config file:
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
app: path.join(__dirname, 'app/index.js'),
},
output: {
…

totymedli
- 29,531
- 22
- 131
- 165
0
votes
1 answer
React server-side rendering with hot module reload
I've been doing a lot of reading on this, it seems that a lot of boilerplates available on github that enable both of these use webpack-dev-server to rebuild the client bundle. However, I'm not sure how or if the server is hot-module reloaded. Is…

user490895
- 335
- 2
- 7
- 17
0
votes
1 answer
Webpack 2 HMR on Preact App
I'm trying to setup Hot Module Reloading with Webpack 2 and Preact. It's "working", in that it's reloading the entire contents of the app every reload, but I'm getting errors between hot reloads (and I think that's why individual components aren't…

Ruben Martinez Jr.
- 3,199
- 5
- 42
- 76
0
votes
1 answer
slatejs and react-hot-loader
I try to implement slatejs package to my react app for creacting my custom editor,it works great,but hot-reloading stops working.
it stops when I do import into some component.I use webpack-dev-server+react-hot-loader
Firstly I supposed that the…

Renat
- 3
- 1
0
votes
1 answer
webpack hot reaload react
I know there is plenty questions about this but I am searching for a solution for 14 hours in 2 days.
I am trying to build a development enviroment for myself but have no luck with hot auto update.
I change webpack.config entry point to…

Valour
- 773
- 10
- 32
0
votes
1 answer
react server side rendering and hot reloading
My webpack looks like this:
import webpack from 'webpack';
import path from 'path';
export default {
debug: true,
devtool: 'inline-source-map',
noInfo: false,
entry: [
'eventsource-polyfill', // necessary for hot reloading with IE
…

systemdebt
- 4,589
- 10
- 55
- 116
0
votes
1 answer
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 -- --inline --progress --profile --watch --hot.
The…

Nikolay Petkov
- 23
- 7
0
votes
0 answers
AddEventListener and webpack HRM
I have a little project and decided to try webpack for it.
Using Hot reload I was able to bundle everything and update on change of js or sass.
The thing is, I have some event liteners like
btn.addEventListener('click', function () {
//do…

Agu V
- 2,091
- 4
- 25
- 40
0
votes
1 answer
Syntax error in react-boilerplate after adding new dependencies
I have a hard time adding dependencies to a newly generated react-boilerplate project. I face this error:
node.js:122 Uncaught SyntaxError: Unexpected token :
(anonymous function) @ reactBoilerplateDeps.dll.js:340
__webpack_require__ @ …

Nikola Schou
- 2,386
- 3
- 23
- 47
0
votes
1 answer
Webpack is displaying empty pages, but files are being shown in terminal
partially going insane right now. I have been trying to fix this problem for over a week, but still can not seem to fix it.
Currently I am trying to make a React application that utilizes React-Router, however I am NOT using Redux or Flux. I took…

Michael Jones
- 2,222
- 18
- 32
0
votes
1 answer
Delaying Render of root component in React errors w/ Hot Reloading
I need to delay the root app component until my redux store autoHydrates using redux-persist. But using this code causes error in development when using Hot Reloading:
const App = () => (
…

jasan
- 11,475
- 22
- 57
- 97