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
Hello @timostamm! Thanks for putting together such a wonderful tool. I've been tinkering with the code and I'm running into a peculiar import error I've been struggling to debug. My goal is to be able to create functional client / interfaces from proto files against a server running scalapb https://scalapb.github.io/json.html.
./src/utils/proto/google/protobuf/wrappers.ts
Attempted import error: 'LongType' is not exported from '@protobuf-ts/runtime'.
I have a pretty specific set up im testing, so next steps are to work on isolating the issue further, but I thought I would ask and see if this is something you have experience with.
Basically my process was to run protobuf-ts against my interfaces monorepo. Once I was happy with the configuration and generated code, I proceeded to copy the generated files into a local project in src/utils/proto.
I notice that in src/utils/proto/google/protobuf/wrappers.ts, the LongType import is also the first import, so I doubt this has anything to do specifically with that type.
If you update to 1.0.4, the issue should be fixed.
scalapb looks like a very nice protobuf implementation. In the long term (when you have more than a handful RPC methods), I would recommend having a look at gRPC-web or Twirp.
Hello @timostamm! Thanks for putting together such a wonderful tool. I've been tinkering with the code and I'm running into a peculiar import error I've been struggling to debug. My goal is to be able to create functional client / interfaces from proto files against a server running scalapb https://scalapb.github.io/json.html.
I have a pretty specific set up im testing, so next steps are to work on isolating the issue further, but I thought I would ask and see if this is something you have experience with.
Basically my process was to run protobuf-ts against my interfaces monorepo. Once I was happy with the configuration and generated code, I proceeded to copy the generated files into a local project in
src/utils/proto
.In the package json, I have the following:
I verified in
node_modules
that I seeLongType
is exported from runtime types.I notice that in
src/utils/proto/google/protobuf/wrappers.ts
, the LongType import is also the first import, so I doubt this has anything to do specifically with that type.Some info on node / yarn version.
If I find the solution, I will be sure to update this. Thanks again!
The text was updated successfully, but these errors were encountered: