-
Notifications
You must be signed in to change notification settings - Fork 280
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
Buf Generate Error #1788
Comments
Hey @prodbyola, if you run any of the But the npm package You have two options to avoid this issue: 1. use the "excludes" option: # buf.yaml file at the root, next to your buf.gen.yaml
version: v1
build:
excludes:
- front/node_modules Or 2. - move your proto files into a Let us know if that resolves the issue for you. |
Hi @timostamm, Although I'm facing another issue now but I don't think it's related to bufbuild itself. I guess it might be This is the error I'm getting now.
|
The second is an issue with Thanks for your help @timostamm. |
That's correct, @prodbyola. I'm going to close this issue, because there is nothing we can do about this issue in protoc-gen-ts. If you are looking for a protobuf implementation in TypeScript, you might also want to take a look at our protobuf-es. Similar to protoc-gen-ts, it provides protobuf fields as plain properties, but it also passes the conformance tests, implements the JSON format correctly, and comes with a simple framework to write your own plugins. We don't have a package yet to use it with @grpc/grpc-js, but you have two options for this use case:
|
Hi @timostamm, node_modules/@bufbuild/connect-node/dist/esm/compression.js:15:9: ERROR: No matching export in "browser-external:util" for import "promisify" Thanks for your help. |
@prodbyola, this looks like an issue with vite trying to bundle Node.js code for the browser. Are you actually using You could also start a discussion there, or in our Slack channel. But it's likely that you need to provide a bit more information about what servers you want to call. |
Hi, I just installed
buf
using Homebrew.Anytime I try to
buf generate
, I get a long list of error like below. I have removed previously installed protoc on my PC but I still get the same error.This is my config:
Thanks for your help.
Error:
The text was updated successfully, but these errors were encountered: