Webpack Error: Cannot use [chunkhash] for chunk

error – webpack – Cannot use [chunkhash] for chunk

ERROR in chunk runtime [entry]
Cannot use [chunkhash] for chunk in '[name].[chunkhash].js' (use [hash] instead)

Just comment out the hot replacement plug-ins in plugins. The online config does not need hot replacement:

plugins: [
    //new hotModuleReplacementPlugin(),


localĀ productionstart

 devServer: {
    // set proxy
    hot: process.env.NODE_ENV === 'development',

Similar Posts: