Webpack Error: Cannot use [chunkhash] for chunk

error – webpack – Cannot use [chunkhash] for chunk

ERROR in chunk runtime [entry]
[name].[chunkhash].js
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(),
]

vue.config.js

localĀ productionstart

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

Similar Posts: