{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc-web/issues/294","repository_url":"https://api.github.com/repos/grpc/grpc-web","labels_url":"https://api.github.com/repos/grpc/grpc-web/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc-web/issues/294/comments","events_url":"https://api.github.com/repos/grpc/grpc-web/issues/294/events","html_url":"https://github.com/grpc/grpc-web/issues/294","id":362119055,"node_id":"MDU6SXNzdWUzNjIxMTkwNTU=","number":294,"title":"How to use grpc-web in reactjs","user":{"login":"hunnain","id":24963356,"node_id":"MDQ6VXNlcjI0OTYzMzU2","avatar_url":"https://avatars0.githubusercontent.com/u/24963356?v=4","gravatar_id":"","url":"https://api.github.com/users/hunnain","html_url":"https://github.com/hunnain","followers_url":"https://api.github.com/users/hunnain/followers","following_url":"https://api.github.com/users/hunnain/following{/other_user}","gists_url":"https://api.github.com/users/hunnain/gists{/gist_id}","starred_url":"https://api.github.com/users/hunnain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunnain/subscriptions","organizations_url":"https://api.github.com/users/hunnain/orgs","repos_url":"https://api.github.com/users/hunnain/repos","events_url":"https://api.github.com/users/hunnain/events{/privacy}","received_events_url":"https://api.github.com/users/hunnain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-09-20T10:19:50Z","updated_at":"2018-09-21T10:07:50Z","closed_at":null,"author_association":"NONE","body":"Hi i have created my grpc server  on nodejs but i want to connect my grpc server with reactjs i want to use grpc web on my react app.\r\nFirstly i write this command \r\nprotoc ./protos/helloworld.proto \\\r\n--js_out=import_style=commonjs: \\\r\n--grpc-web_out=import_style=commonjs,mode=grpcwebtext:/\r\nto build two file of protocol buffer and this command gives me an error.\r\nprotoc-gen-grpc-web: program not found or is not executable\r\n--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.\r\nwhen iclone your repo grpc-web and execute command  sudo make install-plugin\r\nso they will give an error \r\n\r\ngrpc_generator.cc:20:10: fatal error: google/protobuf/compiler/code_generator.h: No such file or directory\r\n #include <google/protobuf/compiler/code_generator.h>\r\n          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\ncompilation terminated.\r\n<builtin>: recipe for target 'grpc_generator.o' failed\r\nmake[1]: *** [grpc_generator.o] Error 1\r\nmake[1]: Leaving directory '/home/hunnain/Apps/ultimatetodo/testing/grpc-web/javascript/net/grpc/web'\r\nMakefile:94: recipe for target 'install-plugin' failed\r\nmake: *** [install-plugin] Error 2\r\n\r\nplease  resolve this error or either please guide me how mai i use grpc-web in my react app.I know this is not an issue but i didn't find any solution and i want to create an app using grpc as soon as possible."},"comment":{"url":"https://api.github.com/repos/grpc/grpc-web/issues/comments/423482907","html_url":"https://github.com/grpc/grpc-web/issues/294#issuecomment-423482907","issue_url":"https://api.github.com/repos/grpc/grpc-web/issues/294","id":423482907,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzQ4MjkwNw==","user":{"login":"hunnain","id":24963356,"node_id":"MDQ6VXNlcjI0OTYzMzU2","avatar_url":"https://avatars0.githubusercontent.com/u/24963356?v=4","gravatar_id":"","url":"https://api.github.com/users/hunnain","html_url":"https://github.com/hunnain","followers_url":"https://api.github.com/users/hunnain/followers","following_url":"https://api.github.com/users/hunnain/following{/other_user}","gists_url":"https://api.github.com/users/hunnain/gists{/gist_id}","starred_url":"https://api.github.com/users/hunnain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunnain/subscriptions","organizations_url":"https://api.github.com/users/hunnain/orgs","repos_url":"https://api.github.com/users/hunnain/repos","events_url":"https://api.github.com/users/hunnain/events{/privacy}","received_events_url":"https://api.github.com/users/hunnain/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T10:07:50Z","updated_at":"2018-09-21T10:07:50Z","author_association":"NONE","body":"Thank you so much stanley you help me there is last error i am facing \r\nFailed to load localhost:50051/helloworld.Greeter/SayHello: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.\r\ni have also instal hhtp and run http server on my root directory so  now client side  port is 8082\r\nwhat may i do now there was no console on my grpc node server i think because of this error my data is not going in grpc server.\r\n![screenshot from 2018-09-21 15-04-50](https://user-images.githubusercontent.com/24963356/45875073-13454280-bdb0-11e8-9d91-356615a93941.png)\r\n"}}
{"actor":{"display_login":"hunnain"}}