You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but protobufjs/runtime has no Root property exported and I get runtime error
/home/hal/git/diadocsdk-proto/protoclasses-module.js:8
module.exports = factory(require("protobufjs/runtime"));
^
TypeError: Cannot read property 'fromJSON' of undefined
at /home/hal/git/diadocsdk-proto/protoclasses-module.js:13:30
So, I can fix this by require('protobufjs'), not require('protobufjs/runtime').
Or I can make PR with Root exported from runtime.
Which is correct usage scenario for protobuf/runtime here?
The text was updated successfully, but these errors were encountered:
protobuf.js version: v6.4.1
I use
to generate javascript module.
Generated code has bootstrapper:
where the factory is
but protobufjs/runtime has no Root property exported and I get runtime error
So, I can fix this by
require('protobufjs')
, notrequire('protobufjs/runtime')
.Or I can make PR with Root exported from runtime.
Which is correct usage scenario for protobuf/runtime here?
The text was updated successfully, but these errors were encountered: