"ReferenceError: process is not defined" trying to load grpc package with proto-loader and grpc-js in vue component #7537
Unanswered
staticdev
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
The components of vue are rendered in the browser by default, so when using vite to build the application, the default environment is the browser, you should not build the node api into the browser environment code |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a typescript component and I need it to make a grpc call.
My proto file is in the example: https://github.com/floydjones1/ts-node-grpc/blob/main/proto/random.proto
component.vue:
As soon as I run a page with this component I have:
If I run it outside of Vue.js it works. Any idea what do I need to do?
Beta Was this translation helpful? Give feedback.
All reactions