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

buf: specify version of stephenh-ts-proto plugin #3941

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

jprjr
Copy link
Contributor

@jprjr jprjr commented Sep 20, 2024

Hi there - I was trying to build this locally, and with docker, and kept receiving errors during pnpm build:

src/types/proto/store/workspace_setting.ts:8:44 - error TS2307: Cannot find module '@bufbuild/protobuf/wire' or its corresponding type declarations.

While digging through everything - it looks like the plugins used by buf aren't tracked by any package managers/lockfiles/etc, it seems like buf pulls them in dynamically.

Looking at https://buf.build/community/stephenh-ts-proto?version=v2.2.0 - it looks like v2.2.0 came out September 19th and I suspect it generates code that's incompatible with something, because when I changed the buf.gen.yaml file to reference a specific version (the previous one listed) - everything compiles without issue.

I'm guessing there's some dependency that can be updated somewhere to enable stephenh-ts-proto v2+ but in the meantime, seems like it's a good idea to specify plugin versions to known-good versions.

Not sure if the other plugins need to receive the same treatment? I'll be honest, I'm way outside my area of expertise, I just wanted to build the app.

@jprjr jprjr requested a review from boojack as a code owner September 20, 2024 19:41
Copy link
Member

@boojack boojack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@boojack boojack merged commit 46830e3 into usememos:main Sep 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants