grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.59k stars 765 forks source link

Getting `Property 'proto' doesn't exist` every time running #1458

Closed rizdaputra closed 3 weeks ago

rizdaputra commented 1 month ago

The error i get after generating and running the app using the generated file is Property 'proto' doesn't exist i use the typescript format for the auto generated and the error comes from the js file. Any help would be appreciated image

sampajano commented 1 month ago

@rizdaputra Thanks for reaching out!

Could you check out our documentation in our Typescript example here on how to work with Typescript?

Note specifically that it's generally expected that you use a JS bundler like webpack to compile the code before directly running it (like here), which I believe is what you might be missing.