grpc / grpc/grpc-web

Failed to compile. 'proto' is not defined (also 'COMPILED')

Open
#447 20 comments 31 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

I'm using create-react-app with typescript and grpc-web, grpc & proto generated with command:
```
$(protoc) -I $(proto_dir) $(proto_dir)/ride.proto --js_out=import_style=commonjs:./rider/typescript/src/proto --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:./rider/typescript/src/proto
```

App is not able to start, it throws tons of errors of form
```
Failed to compile.

./src/proto/ride_pb.js
Line 37: 'proto' is not defined no-undef
Line 40: 'proto' is not defined no-undef
Line 41: 'COMPILED' is not defined no-undef
Line 42: 'proto' is not defined no-undef
...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.