how to load .proto file in next 14 typescript
Answered
New Guinea Freshwater Crocodile posted this in #help-forum
New Guinea Freshwater CrocodileOP
I am unable to load .proto file in next js 14 typescript . I have include .proto files in ts json file but still not importing. Pls help me to fix this issue #nextjs14 #typescript #proto
Answered by New Guinea Freshwater Crocodile
actually i was importing .proto file as import in ts . which is not working. now i am loading from public dir as static file. it work. but thanks for your ans.
3 Replies
@New Guinea Freshwater Crocodile I am unable to load .proto file in next js 14 typescript . I have include .proto files in ts json file but still not importing. Pls help me to fix this issue #nextjs14 <#913087333706895391> #proto
are you trying to use grpc client on next?
try to load it with
try to load it with
@grpc/proto-loader or use ts-protoc-gen to generate a typescript clientNew Guinea Freshwater CrocodileOP
thanks for your ans
New Guinea Freshwater CrocodileOP
actually i was importing .proto file as import in ts . which is not working. now i am loading from public dir as static file. it work. but thanks for your ans.
Answer