Home > Web Front-end > JS Tutorial > body text

vue-cli+webpack reports error when creating project

php中世界最好的语言
Release: 2018-05-10 10:22:03
Original
1786 people have browsed it

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:
Copy after login

After investigation, it was found that it was a BUG in the new version of webpack. The solution is to uninstall the new version and install the old version.

The command is as follows:

npm remove webpack-dev-server
npm install webpack-dev-server@2.9.1
npm run dev
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!