grpc / grpc-web

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

Call for help: require is not defined when using generated typescript client #1343

Closed LinuxSuRen closed 8 months ago

LinuxSuRen commented 1 year ago

I followed the guide. But I got the following error:

server_pb.js:11 Uncaught ReferenceError: require is not defined server_pb.js

Please feel free to comment below if you have any clues.

sampajano commented 1 year ago

@LinuxSuRen Hi :)

Could you clarify on the following?

  1. which exact steps / commands you ran
  2. which step is this error seen?

Also, the full instructions for TS client can be found here. Please also follow that and see if that works for you (and if it does, please let me know what is missing in your previous workflow).

Thanks!

sampajano commented 8 months ago

Closing due to inactivity :)