Skip to content
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

error TS2339: Property 'includes' does not exist on type 'string[]'. #73

Closed
gabriel opened this issue Oct 15, 2020 · 2 comments
Closed

Comments

@gabriel
Copy link

gabriel commented Oct 15, 2020

Running the example npm install npm run build returns an error:

➜  grpc_tools_node_protoc_ts git:(master) ✗ npm build  
npm WARN build `npm build` called with no arguments. Did you mean to `npm run-script build`?
➜  grpc_tools_node_protoc_ts git:(master) ✗ npm run build

> grpc_tools_node_protoc_ts@5.0.0 build /Users/gabe/projects/grpc_tools_node_protoc_ts
> tsc -p . && cp -r src/lib/template build/lib

src/index.ts(27,69): error TS2339: Property 'includes' does not exist on type 'string[]'.
@gabriel
Copy link
Author

gabriel commented Oct 15, 2020

Using the example from https://github.com/improbable-eng/ts-protoc-gen#generating-grpc-service-stubs-for-use-with-grpc-node @grpc/grpc-js section seems to work though.

@agreatfool
Copy link
Owner

Hi @gabriel, version 5.0.1 has been released. Thanks for the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants