-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HMR: hot update file 404 #9186
Comments
And this is my webpack config // const baseConfig = require('./webpack.common')
const clientBaseConfig = require('./webpack.client.base')
const serverBaseConfig = require('./webpack.server.base')
const webpack = require('webpack')
const merge = require('webpack-merge')
const path = require('path')
module.exports = [merge(clientBaseConfig, {
entry: {
client: [path.resolve(__dirname, '../app/client/client.entry.tsx'), 'webpack-hot-middleware/client?name=client']
},
devtool: "inline-source-map",
output: {
publicPath: '/',
filename: '[name].index.[hash].js',
path: path.resolve(__dirname, '../app/server/static/dist'),
hotUpdateChunkFilename: 'hot/[hash].hot-update.js',
hotUpdateMainFilename: 'hot/[hash].hot-update.json'
},
mode: "development",
plugins: [
new webpack.HotModuleReplacementPlugin()
]
}), merge(serverBaseConfig, {
target: 'node',
entry: {
server: [path.resolve(__dirname, '../app/client/server.entry.tsx')]
},
devtool: "inline-source-map",
output: {
publicPath: './',
filename: '[name].index.js',
path: path.resolve(__dirname, '../app/dist'),
libraryTarget: 'commonjs2'
},
mode: "development"
})] |
It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue. |
@Richard-Choooou were you able to figure out the root cause? I'm actually running into a very similar situation and am also having issues finding a solution. |
This might be the same issue as webpack/webpack-dev-server#2355. |
Why does the hash are different? the hash of the hot-update files used the previous compiler's hash value.
The text was updated successfully, but these errors were encountered: