element+ 引入图标报错

Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\components\TimeLine.vue". Does the file exist?

原因:element-plus需要单独引入 icons 文档

pnpm install @element-plus/icons-vue

之后就可以正常使用了

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐