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
{{ message }}
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Error: ENOENT: no such file or directory, open '/Users/myUser/proto/zeebe.proto'
at Object.openSync (node:fs:600:3)
at Object.readFileSync (node:fs:468:35)
at fetch (/Users/myUser/camunda-zrpc-test/dist/out.js:31582:30)
at Root.load (/Users/myUser/camunda-zrpc-test/dist/out.js:31611:11)
at Root.loadSync (/Users/myUser/camunda-zrpc-test/dist/out.js:31621:19)
at loadProtosWithOptionsSync (/Users/myUser/camunda-zrpc-test/dist/out.js:35023:31)
at loadSync (/Users/myUser/camunda-zrpc-test/dist/out.js:36043:63)
at new GrpcClient (/Users/myUser/camunda-zrpc-test/dist/out.js:44115:62)
at GrpcMiddleware.createInterceptedGrpcClient (/Users/myUser/camunda-zrpc-test/dist/out.js:44455:28)
at new GrpcMiddleware (/Users/myUser/camunda-zrpc-test/dist/out.js:44452:32) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/Users/myUser/proto/zeebe.proto'
}
Possible solutions
Rather than directly referencing a path to a file. we could use require/import the file and use it.
OK. I've done this before. From memory: you need to add a build step to move the proto file. Since it is dynamically loaded and is not a .js asset, the builder needs to be made aware of it.
When library is used in applications which uses external builds , direct references to files example: https://github.com/camunda-community-hub/zeebe-client-node-js/blob/master/src/zb/ZBClient.ts#L1292 throwing errors.
Current Behavior
Possible solutions
Rather than directly referencing a path to a file. we could use require/import the file and use it.
Steps to Reproduce
Sample Repo https://github.com/BaluVyamajala/camunda-zrpc-esbuild-test
The text was updated successfully, but these errors were encountered: