Vue.js common error messages and records of their solutions

Source: Internet
Author: User

1. Vue Packages version mismatch

translation : Vue package version matching error

Examples of error :

cause of error : Usually occurs in some dependent library updates or after installing a new dependent library (you can think of NPM update as a habit), resulting in the version of Vue and Vue-template-compiler inconsistent.

Solution : Unify the versions of Vue and Vue-template-compiler

1 "vue": "2.3.4",2 "Vue-template-compiler": "2.3.4",

(note: As shown above, the version number is a sample, the specific implementation of the small partners according to their own version number corresponding)

Then execute: NPM update is available.

Additional :

If the above method does not solve the problem, it may be because of the conflict between the dependent libraries, here we also have a more violent solution.

First look at the project root directory to see if the Package-lock.json file has been generated, if so, delete it.

Then delete the entire Node_modules directory, reconfigure the Package.json (of course, remember to unify Vue and Vue-template-compiler versions)

Re-execute after configuration: NPM install;

OK, problem solved.

Still in continuous update ...

Reprint Please specify source: http://www.cnblogs.com/meng1314-shuai/p/7405346.html

Vue.js common error messages and records of their solutions

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.