vue3错误归纳

1,出错原因,找不到文件

npm install --save @/api/baseInfo/department    //这个目录没有文件

 2.packjson 中那么没改,不知道为什么

E:\gh-phm\ruoyi-ui\node_modules\normalize-package-data\lib\fixer.js:336
        throw new Error("Invalid name: " + JSON.stringify(name))
        ^
Error: Invalid name: "中广核主泵状态检测与健康管理"

3。找不到文件To install it, you can run: npm install --save echarts/types/src/layout/barGrid

 ERROR  Failed to compile with 1 error                                                                                                                                                                                      13:23:26

This dependency was not found:

* echarts/types/src/layout/barGrid in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/v
iews/system/equipment/equipment.vue?vue&type=script&lang=js&

To install it, you can run: npm install --save echarts/types/src/layout/barGrid
//解决办法,这是equipment导入了一个
barGrid文件导致,删除即可


 4,找不到方法

TypeError: (0 , _equipment.addEquipment)(...).then is not a function 

//返回没写返回值,没有then

 6.[Vue warn]: Error in v-on handler: "TypeError: config.method.toLowerCase is not a function"

    就是那里字母写错了,细心问题

7.Uncaught (in promise) TypeError: response.data is not a function

      调用了data()method,然后应该是用data接受。

posted @ 2023-06-15 13:27  党王  阅读(255)  评论(0)    收藏  举报