This time I bring you vue-cli webpackCreate projectError reporting, vue-cli webpack creating project error reportingNotesWhat are the actual cases below, let’s take a look one time.
没有给这些选项指定值: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-loader-alias, optimize-max-chunks, optimize-min-chunk-size, prefetch, provide, plugin, open-page npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! love@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js` npm ERR! Exit status 1 npm 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 was found that it was a BUG in the new version of webpack. The solution is to uninstall the new version andinstallthe old version.
The command is as follows:
npm remove webpack-dev-server npm install webpack-dev-server@2.9.1 npm run dev
Then the project will be normal. It is currently determined to be a BUG in webpack-dev-server@2.10.0. Before it releases a new version to solve the problem, install the old version to solve the problem.
If you can't solve the problem, please leave a message in the comments.
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
The local ip cannot access the processing method when building the project
vue-cli cannot initialize webpack template processing Method
#Vue beginners’ summary of common mistakes
The above is the detailed content of vue-cli+webpack reports error when creating project. For more information, please follow other related articles on the PHP Chinese website!