Currently, node-castv2 depends on an old version of protobufjs (3.x instead of the latest 5.x), which depends on an old version of bytebuffer, which has the following error:
.../bytebuffer/src/types/strings/vstring.js:67:63: 'val' is not defined.
I saw ReferenceError: val is not defined in our telemetry for WebTorrent Desktop.
That's weird, I thought-- reference errors are almost like syntax errors, they can be caught with a linter and should never happen at runtime.
So I ran standard on our whole node_modules folder, which crunched for a few minutes and then found the error above.
I think the easiest way to fix it is for node-castv2 to upgrade to the latest protobufjs.
Currently,
node-castv2depends on an old version ofprotobufjs(3.x instead of the latest 5.x), which depends on an old version ofbytebuffer, which has the following error:I saw
ReferenceError: val is not definedin our telemetry for WebTorrent Desktop.That's weird, I thought-- reference errors are almost like syntax errors, they can be caught with a linter and should never happen at runtime.
So I ran
standardon our wholenode_modulesfolder, which crunched for a few minutes and then found the error above.I think the easiest way to fix it is for
node-castv2to upgrade to the latestprotobufjs.