-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate grpc-web code that use import than require #298
Comments
Having the same error. Did you manage to resolve it? |
Can you share a command You're using to generate stubs? When I'm using When I'm using I've been bouncing between those two errors some time now and I can't figure any solution out. |
Use other stuff, for example, vue-cli. But that's not a perfect solution. Upgrade this package is the perfect solution. |
@yingshaoxo Temporary solution would be to change the import types in the generated structures: Unfortunately this takes me back to the first error: |
This lib seems not to be working with Vite at all. If You want to develop using Vite and gRPC, use https://github.com/timostamm/protobuf-ts. Works wonderful with Vite. |
No other library is better than ts-protoc-gengeng. |
I see if I use vite, the whole package won't work
It will show the error, it says:
require is not defined
https://vitejs.dev
The text was updated successfully, but these errors were encountered: