We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Module build failed: Duplicate declaration "key"
protobuf.js version: 8401a47
ERROR in ./src/js/protos.js Module build failed: Duplicate declaration "key" 26927 | if (message.delta === $util.emptyObject) 26928 | message.delta = {}; > 26929 | let key = reader.string(); | ^ 26930 | reader.pos++; 26931 | message.delta[typeof key === "object" ? $util.longToHash(key) : key] = $root.cockroach.gossip.Info.decode(reader, reader.uint32()); 26932 | break;
The full function is:
Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cockroach.gossip.Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: message.node_id = reader.int32(); break; case 2: message.addr = $root.cockroach.util.UnresolvedAddr.decode(reader, reader.uint32()); break; case 3: reader.skip().pos++; if (message.high_water_stamps === $util.emptyObject) message.high_water_stamps = {}; let key = reader.int32(); reader.pos++; message.high_water_stamps[typeof key === "object" ? $util.longToHash(key) : key] = reader.int64(); break; case 4: reader.skip().pos++; if (message.delta === $util.emptyObject) message.delta = {}; let key = reader.string(); reader.pos++; message.delta[typeof key === "object" ? $util.longToHash(key) : key] = $root.cockroach.gossip.Info.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } } return message; };
According to http://stackoverflow.com/questions/35746371/error-duplicate-const-declaration-in-switch-case-statement, each case should be wrapped in a block to avoid the declaration leaking out.
case
The text was updated successfully, but these errors were encountered:
CLI: Check upfront if key-var is required in static decoders with map…
8d99815
…s, see #726
CLI: Fixed computed array indexes not being renamed in static code, see
8a60174
#726
Fixed in 8d99815.
Sorry, something went wrong.
No branches or pull requests
protobuf.js version: 8401a47
The full function is:
According to http://stackoverflow.com/questions/35746371/error-duplicate-const-declaration-in-switch-case-statement, each
case
should be wrapped in a block to avoid the declaration leaking out.The text was updated successfully, but these errors were encountered: