Comments (5)
what(): basic_string::_M_construct null not valid
Huh! I've not seen that error before, but it's coming from the protoc lib and not ts-proto itself.
If you can find the root cause, curious to hear it, but sorry otherwise I can't be much help.
from ts-proto.
I know this is probably not the best place since you said it would be protoc, but I tried 25.4, 25.2, 24.4 and 23.4 and all return the same error. Just wanted to know how you fixed it. The normal js_out works fine, just not the ts_out.
Running: Win10, ts-proto 1.167.9
from ts-proto.
I don't really know what I changed, but it works now, and I will not touch it again:
grpc_tools_node_protoc^
--js_out=import_style=es6,binary:%PROTO_DIR%^
--ts_out=import_style=es6,binary:%PROTO_DIR%^
--ts_opt=target=node^
--ts_opt=esModuleInterop=true^
--grpc_out=%PROTO_DIR%^
-I ./^
./*.proto
from ts-proto.
I don't think you have the right open-source project; grpc_tools_node_protoc
is probably this project:
https://github.com/agreatfool/grpc_tools_node_protoc_ts#readme
from ts-proto.
Yeah, you are right, but I tried it before with yours and the normal protoc command, and then I got the error. Just wanted to paste a solution that helped me.
from ts-proto.
Related Issues (20)
- fromJSON should accept both snake_case and camelCase keys HOT 1
- Provide Options type for execution in TS HOT 1
- Add common types to their own file/export w/outputIndex option HOT 2
- Questions about defaults, optionals, arrays, null/undefined HOT 2
- Support `google.api` attributes/conventions HOT 1
- NestJS without Observables HOT 1
- meta generated for messages with oneOf properties is incorret for other properties HOT 1
- Add types for toJSON/fromJSON methods HOT 1
- TypeError on Runtime ChannelCredentials object HOT 1
- Using 'useDate=string' parameter; the response is still anticipating an object for Timestamp Wrapper
- Encode crashes on `null` object values HOT 2
- Rpc doesn't account for metadata HOT 2
- Rpc is not exported by ts-proto as it previously was HOT 6
- Generated affixes HOT 1
- Conflicting protobuf definitions when using ts-proto plugin with Buf HOT 2
- Support for proto-loader "virtual" oneof field
- Release updated ts-proto-descriptors? HOT 4
- Proto import statements not being recognized HOT 1
- Support for messages with the same name as an rpc method HOT 2
- unexpected changes in `camelToSnake()` at v1.176.1 HOT 7
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 ts-proto.