Vue2.5 version uses elementui2.15 version incompatibility problem solved

Cause of the problem

The vue scaffolding version is vue2.5 and below. The recommended version of el-ui for these versions can only be 2.9.0 and below

Solution

Modify the vue version in package.json to 2.7 or above
insert image description here
Execute in the cmd console:

 cnpm update

If you are prompted to install components or to add components when you start an error report, follow the prompts to add

After all updates are complete, open the nodel_models folder, find the packageage.json file under the vue folder, and check the version number

insert image description here

Now element-ui can use the content of version 2.15.13

Guess you like

Origin blog.csdn.net/gjb760662328/article/details/129708803