Solve the Problem of a vue-cli + webpack project creation error, vue-cliwebpack

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.