The vue project starts successfully and the browser does not display

Scenario: The vue project starts successfully without any error, but the browser keeps loading and the page is always blank .
If your project uses the tab component of element-ui el-tabs组件,那么大概率是此组件引起的浏览器卡死问题.
You can comment out the code of el-tabs now. If the startup project can start and open the page successfully, it is the problem of el-tabs.
insert image description here

First find package.json, modify the following vue version to 2.6.0, element-ui version to 2.13.2, and vue-template-compiler to 2.6.0:
"element-ui": "2.13.2"
"vue ": "2.6.0"
"vue-template-compiler": "2.6.0"
Then, npm i
waited for the upgrade to complete, restarted the project, and solved the problem perfectly

Guess you like

Origin blog.csdn.net/i_am_a_div/article/details/128078446