Requirement background:
The project needs to use pictures, click to enlarge, and wants to use <el-image>
components. After importing, the following error is reported, and the element version needs to be upgraded . The element-ui version is too low, and there is no such component.
Process:
cnpm i [email protected] --save-dev
After the upgrade, more than a thousand errors were reported on the page, such as Property or method “__v_isRef” is not defined on the instance
There are many project pages for fear of being affected, and then it was downgraded to the previous version cnpm i [email protected] --save-dev
, and node_modules was deleted, npm i was re-run, and npm run dev was re-run
Solution:
Finally, under the old version of element-ui, clicking on the image to enlarge is realized. For details, please see vue background to realize clicking on the image to enlarge
Reference article:
Similarities and differences of npm i, npm install, npm i -S, npm i -D
vue2.x upgrade to vue2.7