-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Cannot read properties of undefined (reading 'add') #1898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am also getting an error in the protobuf.js/ext/descriptor/index.js Line 488 in 4436cc7
but for a different method called
If I modify the source code and add a check around the existence of |
@zslucky - were you able to resolve your issue? |
protobuf.js version: 7.2.3
See related code bellow:
protobuf.js/ext/descriptor/index.js
Lines 207 to 220 in 56b1e64
Looks like
Line 219
type.oneofsArray
size may got0
, sotype.oneofsArray[descriptor.field[i].oneofIndex]
will returnundefined
, when I add&& type.oneofsArray.lengh > 0
inLine 218
, looks like work correctly. I'm not sure what's the correct logic here.I used this repo behind
@grpc/proto-loader
,@grpc/grpc-js
andgrpc-reflection-js
, as I want to use reflection feature in my client.So pls see my code below:
Pls see tacktrace bellow:
The text was updated successfully, but these errors were encountered: