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Ā production
start
devServer: {
// set proxy
hot: process.env.NODE_ENV === 'development',
......
Similar Posts:
- Webpack reports an error when using the cleanwebpackplugin plug-in
- Natapp solves the problem of invalid host header
- npm ERR! missing script: build [How to Solve]
- Solve the problem of [WDS] disconnected in the console of Vue cli project at runtime! error
- [Solved] vue-elemnt-admin npm run dev Run Error
- [Solved] Unapp H5 Error: Access to XMLHttpRequest at ‘http://www.localtest.com/api/api/v1/job/getPositionList’…
- Webpack packaging error: cannot find module ‘webpack / bin / config yargs’ error reason, [email protected] Step on the pit~
- [Solved] IView NPM run dev run error: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
- npm ERR! missing script: build
- [Solved] Webpack webpack-dev-server Page Error: cannot get/