Uncaught TypeError: Cannot read properties of undefined (reading ‘MethodInfo‘)
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‘)相关推荐
- 报错,Uncaught TypeError: Cannot read properties of undefined (reading ‘inputValue‘) at <anonymous>
错误: Uncaught TypeError: Cannot read properties of undefined (reading 'inputValue') at <anonym ...
- Uncaught TypeError: Cannot read properties of undefined (reading ‘_modulesNamespaceMap‘)
[Vue warn]: Property "$store" was accessed during render but is not defined on instance. a ...
- Uncaught TypeError: Cannot read properties of undefined (reading ‘push’) ---- vue-router报错
坑点 在使用vue-router@4的时候,由于vue3中没有this.router这个写法,所以我就将解构router方法,放在了函数中,由于函数有作用域就报了这个错误:Uncaught TypeE ...
- react 谷歌浏览器报错:Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach‘)
运行react项目,报错: Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')at Object.i ...
- Uncaught TypeError: Cannot read properties of undefined (reading ‘Constructo
报错内容: Uncaught TypeError: Cannot read properties of undefined (reading 'Constructor') at custom.min. ...
- TypeError: Cannot read properties of undefined (reading ‘MethodInfo‘)
调用proto文件所生成的js文件来初始化客户端时报这个错 TypeError: Cannot read properties of undefined (reading 'MethodInfo') ...
- 解决Uncaught TypeError Cannot read properties of undefined (reading ‘props‘)
今天在react中子父传参里, 点击按钮向父组件传递信息时出现了这个错误如图:↓ 这个问题很明显, 从字面意思看就是props前面的这个值没有找到, 然后看源码里面, 前面是个this, 如下图: 也 ...
- Uncaught TypeError: Cannot read properties of undefined (reading ‘slice‘)
进行字符串拼接 遇 报错 var str2 = "get-element-by-class-name";//最终输出 getElementByClassNamevar ia = s ...
- 解决Vue3报错:app.js:314 Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach‘)
配置 vue3的时候,总是出现错误,但好像所有流程都是对的,也没错. 解决方案,可能是配置的routes写错了写成了routers
最新文章
- 不被邀请又怎样!马云都快买下中国AI芯片的半壁江山了,直怼腾讯和百度
- 12.5.2 升12.5.3的补丁 linux下载,游戏1.17/2.12/3.8/4.5/5.2更新内容[附离线补丁下载地址]...
- 赠书:分布式系统中的监控怎么做?
- python软件加密、固定机器使用_如何用Python进行最常见的加密操作?(附最新400集Python教程)...
- 如何搭建html运行环境,搭建真实的运行环境2019.4.22
- vue 单文件组件中,输入template 按 tab 键不能自动补全标签的解决办法
- 给你多少钱,你才会愿意为国家生孩子?
- javascript--Date
- 4.5 第九讲 函数展开成幂级数及其应用
- VMware安装Ubuntu教程
- 仁人帮探索大数据技术
- 个人管理 - 如何演讲
- 支付清结算体系详解(17)
- Python Pandas 行数据筛选方法汇总
- jrtplib学习目录及总结
- 基于WebSocket实现一个简易的群聊功能
- 用Latex编辑数学公式
- Unity小技巧——延时销毁GameObject
- oracle access表丢失,oracle 11.1.0.7-版本也会出现access$表丢失导致数据库无法启动
- 【Fuzzy】不确定规划:模糊相关机会规划与模糊随机变量