typescript
typescript copied to clipboard
[Bug]: pnpm generate fails with "Failure: plugin ts: exec: "node_modules/ts-proto/protoc-gen-ts_proto": file does not exist"
Preflight Checklist
- [X] I could not find a solution in the documentation, the existing issues or discussions
- [X] 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
I was getting similar 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.