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
On Windows.. If we try to use google's timestamp.proto, we have to copy the google directory from the contents of C:\Users\USER_NAME.nuget\packages\google.protobuf.tools\3.2.0\tools\ into the C:\Path\To\Proto directory containing MyFile.proto
That .proto file has an import like so:
import "google/protobuf/timestamp.proto";
That's a problem b/c although there's a workaround to copy the google directory over we have to tell git to ignore it so it isn't checked in, and protobuf.tools may be updated at a later date, meaning manually updating that directory, just for testing with grpcc.
Here is the command line I tried (and many similar variants):
C:\Path\To\Proto>grpcc --proto ./MyFile.proto --address 127.0.0.1:12345 -i -d "C:\Users\USER_NAME.nuget\packages\google.protobuf.tools\3.2.0\tools"
TypeError: Cannot read property 'ns' of null
at Object.load (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\node_modules\grpc\src\node\index.js:152:28)
at createClient (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\lib\index.js:16:21)
at Object. (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\bin\grpcc.js:30:3)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
As mentioned, simply copying "google" over to C:\Path\To\Proto worked fine.
The text was updated successfully, but these errors were encountered:
On Windows.. If we try to use google's timestamp.proto, we have to copy the google directory from the contents of C:\Users\USER_NAME.nuget\packages\google.protobuf.tools\3.2.0\tools\ into the C:\Path\To\Proto directory containing MyFile.proto
That .proto file has an import like so:
import "google/protobuf/timestamp.proto";
That's a problem b/c although there's a workaround to copy the google directory over we have to tell git to ignore it so it isn't checked in, and protobuf.tools may be updated at a later date, meaning manually updating that directory, just for testing with grpcc.
Here is the command line I tried (and many similar variants):
C:\Path\To\Proto>grpcc --proto ./MyFile.proto --address 127.0.0.1:12345 -i -d "C:\Users\USER_NAME.nuget\packages\google.protobuf.tools\3.2.0\tools"
TypeError: Cannot read property 'ns' of null
at Object.load (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\node_modules\grpc\src\node\index.js:152:28)
at createClient (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\lib\index.js:16:21)
at Object. (C:\Users\USER_NAME\AppData\Roaming\npm\node_modules\grpcc\bin\grpcc.js:30:3)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
As mentioned, simply copying "google" over to C:\Path\To\Proto worked fine.
The text was updated successfully, but these errors were encountered: