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 used protoc -I=. protos/*.proto --js_out=import_style=commonjs,binary:grpcproto_web/ --grpc-web_out=import_style=typescript,mode=grpcweb:grpcproto_web/ to generate my proto file.
Then whenever I try to import proto objects like import { LoginRequest } from '../protos/login_pb'; I get errors Uncaught SyntaxError: import not found: LoginRequest.
I looked at issues #535 or vite#3898 but nothing works.
Does anyone have a working example using Vite+Typescript with grpc-web ?
eselkin, Krzysztof-Dziardziel, FredrikMeyer, Juricakov, skroczek and 32 moreKrzysztof-Dziardziel, FredrikMeyer, barrelful, afcjunior, yuujitaka and 2 more