You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some trouble regenerating the protobuf ts/js/ts declaration (.d.ts) files:
Here's what I tried (after copying the new protobuf dir from $ANOMA/anoma/apps/anoma_protobuf/priv/protobuf to the repo.
npm install
./scripts/generate.sh
I get an error:
protoc-gen-js: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--js_out: protoc-gen-js: Plugin failed with status code 1.
I then tried setting:
--plugin="protoc-gen-js=${PROTOC_GEN_JS_PATH}"
in the generate.sh (setting PROTOC_GEN_JS_PATH to the appropriate path in node_modules/.bin)
The script then runs but it doesn't generate the TS declaration .d.ts files. So when I run the example:
npx ts-node src/example.ts
I get the error:
.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/example.ts:2:24 - error TS2307: Cannot find module './protobufs/intents/intent_pb' or its corresponding type declarations.
2 import { Intent } from "./protobufs/intents/intent_pb";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Am I following the right steps to generate the new grpc-js output?
Am I running src/example.ts in the recommended way?
The text was updated successfully, but these errors were encountered:
I'm having some trouble regenerating the protobuf ts/js/ts declaration (.d.ts) files:
Here's what I tried (after copying the new protobuf dir from $ANOMA/anoma/apps/anoma_protobuf/priv/protobuf to the repo.
I get an error:
I then tried setting:
in the generate.sh (setting PROTOC_GEN_JS_PATH to the appropriate path in node_modules/.bin)
The script then runs but it doesn't generate the TS declaration .d.ts files. So when I run the example:
I get the error:
Am I following the right steps to generate the new grpc-js output?
Am I running src/example.ts in the recommended way?
The text was updated successfully, but these errors were encountered: