VUE前端项目问题记录

vue、grpc-web

错误描述

user_grpc_web_pb.js:95 Uncaught TypeError: Cannot read properties of undefined (reading 'MethodInfo')at eval (user_grpc_web_pb.js:95)at Object../src/pbjs/external/user/user_grpc_web_pb.js (app.js:1186)at __webpack_require__ (app.js:90)at eval (index.ts:11)at Module../src/api/index.ts (app.js:423)at __webpack_require__ (app.js:90)at eval (System.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--13-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options:13)at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/System.vue?vue&type=script&lang=ts& (app.js:305)at __webpack_require__ (app.js:90)at eval (VM25262 System.vue:2)

问题原因

package.json中的npm依赖版本不对

错误的

"grpc-web": "^1.3.0",
"protobufjs": "^6.11.2",
"protoc-gen-grpc-web": "^1.3.0",

与项目匹配的

"grpc-web": "^1.1.0",
"protobufjs": "^6.9.0",

Uncaught TypeError: Cannot read properties of undefined (reading ‘MethodInfo‘)相关推荐

  1. 报错,Uncaught TypeError: Cannot read properties of undefined (reading ‘inputValue‘) at <anonymous>

    错误: Uncaught TypeError: Cannot read properties of undefined (reading 'inputValue')     at <anonym ...

  2. Uncaught TypeError: Cannot read properties of undefined (reading ‘_modulesNamespaceMap‘)

    [Vue warn]: Property "$store" was accessed during render but is not defined on instance. a ...

  3. Uncaught TypeError: Cannot read properties of undefined (reading ‘push’) ---- vue-router报错

    坑点 在使用vue-router@4的时候,由于vue3中没有this.router这个写法,所以我就将解构router方法,放在了函数中,由于函数有作用域就报了这个错误:Uncaught TypeE ...

  4. react 谷歌浏览器报错:Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach‘)

    运行react项目,报错: Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')at Object.i ...

  5. Uncaught TypeError: Cannot read properties of undefined (reading ‘Constructo

    报错内容: Uncaught TypeError: Cannot read properties of undefined (reading 'Constructor') at custom.min. ...

  6. TypeError: Cannot read properties of undefined (reading ‘MethodInfo‘)

    调用proto文件所生成的js文件来初始化客户端时报这个错 TypeError: Cannot read properties of undefined (reading 'MethodInfo') ...

  7. 解决Uncaught TypeError Cannot read properties of undefined (reading ‘props‘)

    今天在react中子父传参里, 点击按钮向父组件传递信息时出现了这个错误如图:↓ 这个问题很明显, 从字面意思看就是props前面的这个值没有找到, 然后看源码里面, 前面是个this, 如下图: 也 ...

  8. Uncaught TypeError: Cannot read properties of undefined (reading ‘slice‘)

    进行字符串拼接 遇 报错 var str2 = "get-element-by-class-name";//最终输出 getElementByClassNamevar ia = s ...

  9. 解决Vue3报错:app.js:314 Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach‘)

    配置 vue3的时候,总是出现错误,但好像所有流程都是对的,也没错. 解决方案,可能是配置的routes写错了写成了routers 

最新文章

  1. 不被邀请又怎样!马云都快买下中国AI芯片的半壁江山了,直怼腾讯和百度
  2. 12.5.2 升12.5.3的补丁 linux下载,游戏1.17/2.12/3.8/4.5/5.2更新内容[附离线补丁下载地址]...
  3. 赠书:分布式系统中的监控怎么做?
  4. python软件加密、固定机器使用_如何用Python进行最常见的加密操作?(附最新400集Python教程)...
  5. 如何搭建html运行环境,搭建真实的运行环境2019.4.22
  6. vue 单文件组件中,输入template 按 tab 键不能自动补全标签的解决办法
  7. 给你多少钱,你才会愿意为国家生孩子?
  8. javascript--Date
  9. 4.5 第九讲 函数展开成幂级数及其应用
  10. VMware安装Ubuntu教程
  11. 仁人帮探索大数据技术
  12. 个人管理 - 如何演讲
  13. 支付清结算体系详解(17)
  14. Python Pandas 行数据筛选方法汇总
  15. jrtplib学习目录及总结
  16. 基于WebSocket实现一个简易的群聊功能
  17. 用Latex编辑数学公式
  18. Unity小技巧——延时销毁GameObject
  19. oracle access表丢失,oracle 11.1.0.7-版本也会出现access$表丢失导致数据库无法启动
  20. 【Fuzzy】不确定规划:模糊相关机会规划与模糊随机变量

热门文章

  1. PPT control+D的应用
  2. 固态硬盘是什么接口_区区接口也有如此讲究?固态硬盘接口全解~
  3. OSChina 周日乱弹 ——Mac优雅使用指南
  4. 《狼图腾》读后感(连载)
  5. 周六,照了个人形象照
  6. ChatGPT写程序如何?
  7. 如何使用小乌龟拉取git仓库项目
  8. redis端口号为什么是6379
  9. spring 注解开启声明式事务
  10. 4个手机卡的人,尔等尽皆伤不起哉!