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

[Bug]: pnpm generate fails with "Failure: plugin ts: exec: "node_modules/ts-proto/protoc-gen-ts_proto": file does not exist" #45

Open
2 tasks done
pluraltouch opened this issue Jan 17, 2024 · 1 comment
Labels
auth bug Something isn't working frontend

Comments

@pluraltouch
Copy link

pluraltouch commented Jan 17, 2024

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

current cloned git repo

Describe the problem caused by this bug

when executing

npm generate

it fails with

Failure: plugin ts: exec: "node_modules/ts-proto/protoc-gen-ts_proto": file does not exist

To reproduce

git clone https://github.com/zitadel/typescript.git
pnpm install
# edit /apps/login/.env.local
pnpm generate

Screenshots

No response

Expected behavior

pnpm generate executes successfully

Relevant Configuration

This is node v20.11.0 with pnpm 8.14.1 on Windows 11.

Additional Context

No response

@pluraltouch pluraltouch added the bug Something isn't working label Jan 17, 2024
@charanraj-golla
Copy link

I was getting similar error
1-error

Checked the ts-proto repo. The command needs to be a bit different for windows.
https://github.com/stephenh/ts-proto?tab=readme-ov-file#quickstart
Update the path value to .\\node_modules\\.bin\\protoc-gen-ts_proto.CMD in buf.gen.yaml (zitadel-server\src\buf.gen.yaml )
Execute pnpm generate to generate the proto.

2-error

@hifabienne hifabienne moved this to 🐛 Bugs/Small Issues in Product Management Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth bug Something isn't working frontend
Projects
Status: 🐛 Bugs/Small Issues
Development

No branches or pull requests

3 participants