protobuf.js icon indicating copy to clipboard operation
protobuf.js copied to clipboard

Does it support running on quickjs?

Open zhangkevd opened this issue 1 year ago • 1 comments
trafficstars

I'm trying to use this library on QuickJS but the run prompt cannot be found. It looks like this: "const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); TypeError: Cannot read properties of undefined (reading 'default') So, I used CommonJS to output, and it also reported errors. Doesn't seem to load correctly

zhangkevd avatar Apr 16 '24 15:04 zhangkevd

See https://github.com/protobufjs/protobuf.js/issues/2040 (a quickfix is to fix the line using sed or manually after compilation)

maelp avatar Jun 10 '25 07:06 maelp