Generated Client not working #984
Unanswered
mendokuse3
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a nestjs backend and used twirp-ts and ts-proto to generate files from my proto file. I was able to set up my controller and successfully get requests made via postman, but I'm struggling to get the client working on my frontend, which is a react/typescript project.
I used this command to generate the .ts and .twirp.ts files. I found that without setting the encode/json methods to be true, the generated files would contain errors due to not being able to find the encode functions.
And this is the generated .twirp.ts file
I'm trying to access it from my frontend like this
but I get this error in the console
any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions