typescript icon indicating copy to clipboard operation
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"

Open pluraltouch opened this issue 2 years ago • 1 comments

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

pluraltouch avatar Jan 17 '24 07:01 pluraltouch

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

charanraj-golla avatar Feb 13 '24 17:02 charanraj-golla