Giter Site home page Giter Site logo

Comments (5)

stephenh avatar stephenh commented on June 11, 2024

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.

Juliiiian avatar Juliiiian commented on June 11, 2024

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.

Juliiiian avatar Juliiiian commented on June 11, 2024

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.

stephenh avatar stephenh commented on June 11, 2024

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.

Juliiiian avatar Juliiiian commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.