Tag Archives: Xiaobai enters the pit

The problem that the El icons icon cannot be displayed in vue3 + element plus + vite

The problem that the El icons icon cannot be displayed in vue3 + element plus + vite

Recently, I used the new vue3 + element plus to do front-end project exercises. Using the latest vite, I found that the icons of element can’t be displayed. According to the usage in the official documents, other components can be displayed normally, but the icons can’t be displayed. I asked several front-end leaders of the company that they hadn’t used these new things, Baidu couldn’t find a solution after a long time, so it had no choice but to go to GitHub of vite and finally found that

it was the version problem of vite, so switching vite version can display icons normally

After several years of Java, I found the answer in GitHub for the first time, which was the front end… It can only be said that the pits of java have been trampled by the predecessors