-
Notifications
You must be signed in to change notification settings - Fork 75
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
Could not load file "[object Object]" #65
Comments
I'm also getting this. Windows 7, Node 8.10. |
I have a same problem. You can use relative path, it work for me. |
I also found that you could use "-d" in combination with a simple filename for "-p". |
Getting the same error with OSX. Error: Could not load file "[object Object]" |
This error means grpcc couldn't locate the proto file. |
you can test like this: so maybe it is useful: |
does not work for proto with includes:
|
Just go to file index.js and add JSON.stringify(filename) basically it prints the object which contains the directory path and filepath |
Using
print me out this error : any tips ? Did everything above |
Going way after the battle, but I made it work by launching the tool in the same folder as the proto file. Doing otherwise would just throw me the error. Hope it can help someone. Enjoy 😄 |
grpcc --proto ./Users/pavankumar/Downloads/synchronicity.proto --address tingle-grpc.synchronicity.ai:443
Error: Could not load file "[object Object]"
at Object.load (/Users/pavankumar/.npm-global/lib/node_modules/grpcc/node_modules/grpc/index.js:149:11)
at Object.deprecated [as load] (internal/util.js:70:15)
at createClient (/Users/pavankumar/.npm-global/lib/node_modules/grpcc/lib/index.js:57:21)
at Object. (/Users/pavankumar/.npm-global/lib/node_modules/grpcc/bin/grpcc.js:35:3)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
The text was updated successfully, but these errors were encountered: