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
Cannot import predefined google/protobuf/*.proto in node environment. #8339
Comments
You should use the follow code?
|
For the 'empty.proto' i can see the file is there, but for the 'any.proto' totally no that file. And also in node environment with dynamic mode, no idea how to control the path. |
|
In node environment, all modules supposed to be maintained by npm, so did u try to search int he node_module installed by 'npm install grpc'? i mentioned this very clearly in the issue description. Apparently u should not download all the source then search there. |
same issue.. have any progress? |
@murgatroid99 @nathanielmanistaatgoogle so what is the best practice to include the predefined proto like empty?
the proto was used for multiple language like go, java which is not just for JS. |
This question is not answered, many people have this doubt |
Would definitely be nice to see a resolution to this issue. Else, workaround seems to be: drop use of In rust, golang and other languages where code generation is used for protobuf/grpc, this is not an issue. |
We have now published the |
import "google/protobuf/empty.proto";
import "google/protobuf/any.proto";
will try to find the file with path: __dirname + google/protobuf/empty.proto, also tried to search the whole grpc node_module, cannot find the corresponding files.
what should I do?
The text was updated successfully, but these errors were encountered: