Skip to content
New issue

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

protobufjs: v7.1.2 protobufjs-cli: v1.0.2 using pbjs to generate errors #1836

Open
rock-song opened this issue Dec 1, 2022 · 0 comments
Open

Comments

@rock-song
Copy link

rock-song commented Dec 1, 2022

My generated code is

node_modules/.bin/pbjs --no-create --no-verify --no-convert --no-delimited --force-long --force-message -t static-module -w commonjs -o {_src_dir}/ message.js *.proto

Error message after execution

D:\XXX\node_modules\protobufjs-cli\pbjs.js:251
throw err;
^

Error: unresolvable extensions: 'extend google.protobuf.EnumValueOptions' in .msg, 'extend google.protobuf.MethodOptions' in .msg, 'extend google.protobuf.MethodOptions' in .msg, 'extend google.protobuf.MethodOptions' in .msg, 'extend google.protobuf.MethodOptions' in .msg
at Root.resolveAll (D:\XXX\node_modules\[4mprotobufjs[24m\src\root.js:255:15)
at Object.main (D:\XXX\node_modules\[4mprotobufjs-cli[24m\pbjs.js:242:48)
at Object.<anonymous> (D:\XXX\node_modules\[4mprotobufjs-cli[24m\bin\pbjs:4:16)
[90m    at Module._compile (node:internal/modules/cjs/loader:1155:14)[39m
[90m    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)[39m
[90m    at Module.load (node:internal/modules/cjs/loader:1033:32)[39m
[90m    at Function.Module._load (node:internal/modules/cjs/loader:868:12)[39m
[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)[39m
[90m    at node:internal/main/run_main_module:22:47[39m

I wonder if anyone has encountered a similar problem and has any good solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant