2023-12-10T13:40:59.png

今天练习VUE项目时,代码保存后项目可以正常打开,但是一些组件无法正常展示了,项目不熟,不知道哪里出错

[{
    "resource": "/c:/Users/Administrator/Desktop/syt/syt/src/pages/home/search/index.vue",
    "owner": "_generated_diagnostic_collection_name_#0",
    "code": "2792",
    "severity": 8,
    "message": "Cannot find module '@element-plus/icons-vue'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?",
    "source": "Vetur",
    "startLineNumber": 18,
    "startColumn": 8,
    "endLineNumber": 18,
    "endColumn": 33
}]

后来经过排查,原来时代码保存时多输入了一些字符,导致出错,大家写代码时务必注意。

微信公众号:梦溪博客
最后修改:2023 年 12 月 10 日
如果觉得我的文章对你有用,请随意赞赏