Comments (2)
It'd be awesome if we could get the static generation working too. ts-proto makes it pretty easy to generate the code with es modules & typescript.
I put together a fork of your fork with the typescript generated for the helloworld example: https://github.com/AlfieJones/grpc-node/tree/es_examples.
I used the following to generate the types:
protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=. ./examples/protos/helloworld.proto --ts_proto_opt=outputServices=grpc-js,importSuffix=.js
Currently, I'm getting the following error for that example:
"Request message serialization failure: Cannot read properties of undefined (reading 'from')"
from deno.
error_handling client example works with #23755
➜ examples git:(main) denod run -A --unstable-byonm error_handling/client.js
[1] Calling SayHello with name:""
Warning: Not implemented: Http2Session.socket
[1] Received error 3 INVALID_ARGUMENT: request missing required field: name
[2] Calling SayHello with name:"sr"
Warning: Not implemented: Http2Session.socket
[2] Received response Hello sr
[3] Calling SayHelloStreamReply with name:""
Warning: Not implemented: Http2Session.socket
[3] Received expected error 3 INVALID_ARGUMENT: request missing required field: name
[3] Received status with code=INVALID_ARGUMENT details=request missing required field: name
[4] Calling SayHelloStreamReply with name:"sr"
Warning: Not implemented: Http2Session.socket
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received response Hello sr
[4] Received status with code=OK details=OK
from deno.
Related Issues (20)
- fails to import a module because of invalid utf8 sequence HOT 3
- Bug: Express errors when sending big file
- Memory leak in `node:vm` HOT 2
- Error running task when `nodeModulesDir` is set to `true` but the `node_modules` directory is absent
- LSP: accepting quick fix inserts import from https://jsr.io URL
- Bug: Panic in Jest
- Perf - Do not do node permission checks when all permissions are allowed
- Cannot execute: required file not found when trying to run in termux
- LSP: Regression in resolving Typescript Dependencies of included Typing files HOT 3
- thread 'main' panicked at inspector.rs:367 internal error: entered unreachable code HOT 1
- Using JSR package in Vite running in Deno HOT 1
- handle signal 0 on windows as well on process.kill HOT 1
- vendoring file with equals sign in url causes deno publish to fail
- Add `deno doc --html --watch`
- LSP really slow
- Next 15 dev mode error with turbopack HOT 3
- _perf_hooks.PerformanceObserver is not a constructor
- Node imports don't have LSP autocompletion / suggestion
- how to set up so all code can be easily instrumented? HOT 1
- tabler icon import failing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.