Closed
Description
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 ?
Metadata
Assignees
Labels
No labels
Activity