Solve the Problem of a vue-cli + webpack project creation error, vue-cliwebpack
Today, we use npm init webpack love to create a new project. After executing npm run dev, the project reports an error. The error message is as follows:
No values are specified for these options: config-name, context, entry, module-bind, module-bind-post, module-bind-pre, output-path, output-filename, output-chunk-filename, output-source-map-filename, output-public-path, output-jsonp-function, output-library, output-library-target, records-input-path, records-output-path, records-path, define, target, watch-aggregate-timeout, devtool, resolve-alias, resolve-extensions, resolve-lo Ader-alias, optimize-max-chunks, optimize-min-chunk-size, prefetch, provide, plugin, open-pagenpm ERR! Code ELIFECYCLEnpm ERR! Errno 1npm ERR! Love@1.0.0 dev: 'webpack-dev-server -- inline -- progress -- config build/webpack. dev. conf. js 'npm ERR! Exit status 1npm ERR! Npm ERR! Failed at the love@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:
After investigation, it is found that it is a new version of webpack BUG. The solution is to uninstall the new version and install the old version.
The command is as follows:
npm remove webpack-dev-servernpm install webpack-dev-server@2.9.1npm run dev
Then the project is normal. It is currently identified as a BUG in webpack-dev-server@2.10.0. Install the old version to solve the problem before releasing the new version.
If the problem cannot be solved, leave a message in the comments.
The above article solves the problem of creating a vue-cli + webpack project with errors. It is all the content that I have shared with you. I hope you can give us a reference and also hope you can provide more support to the customer center.