[protobufjs] Error Cannot read property 'emptyArray' of undefined with rollup
See original GitHub issueThis project has a dependency on protobufjs
protobufjs has a known issue with rollup: https://github.com/rollup/rollup/issues/2747
Which means that projects using rollups might have build errors when using nodejs-pubsub.
I am creating this issue for 2 purposes:
- To make it easier to debug the
Cannot read property 'emptyArray' of undefined with rollup
when it is generated, - To suggest to switch with other proto alternatives. I have been using protobuf-ts that generates type safe typescript code and look more robust that protobufjs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'emptyArray' of ...
Im using typescript and trying with awesomemessage example. It reports error of emptyArray. import protobuf from 'protobufjs'; protobuf.load("t.
Read more >ProtoBuf.js
I have a shared library of .proto files. I'd like to be able to publish it as an npm module consisting of one...
Read more >Rollup.js: undefined objects in external dependencies
This sort of errors: Cannot read property 'parse' of undefined coming from crypto-js. It complains about this line in the code: var ciphertext...
Read more >Bug Reports - Fuse Community
Importing webpack/rollup processed code results with `Cannot read property ... TypeError: Cannot read property 'get' of undefined in Fuse.
Read more >firebase/firebase-firestore-lite.js.map
\"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + ... !state.has(receiver)) throw new TypeError(\"Cannot read private member ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@feywind it seems like rollup is working on fixing this in https://github.com/rollup/plugins/pull/658
I’ll update here when I have more info.
I’m going to close this out for now, since there’s not a big emphasis on rollup support just yet, but we’ll re-visit from the
web
tag later.