question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.proto3 input -> .ts3 output

See original GitHub issue

This worked great out of the box! So much nicer than protoc’s commonjs output! ❤️

I ran into one odd roadbump – it kept generating a .ts3 file, which Snowpack didn’t know to interpret as TypeScript. I finally figured out it’s because I’d named my file something.proto3 and that 3 was carried over. I’m fine just renaming my input file to .proto for now to work around this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thesayyncommented, Sep 1, 2020

I am glad that you have solved your problem with this plugin. I would appreciate a star though 😄

Also, that is a good catch and I think it is related to this line https://github.com/thesayyn/protoc-gen-ts/blob/db9e02e6e2f56d2fa55d21f02b681ed93228ccbd/src/index.js#L1646

I’ll fix it this weekend.

0reactions
thesayyncommented, Sep 13, 2020

Oh I see. This should be fixed in 0.3.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Guide (proto3) | Protocol Buffers - Google Developers
It covers the proto3 version of the protocol buffers language: for information on ... to an output stream, and parsing your messages from...
Read more >
protobuf-ts/MANUAL.md at master - GitHub
An "unary" call takes exactly one input messsage and returns exactly one output message. It is one of the four RPC method types...
Read more >
protoc-gen-ts - bytemeta
protoc-gen-ts repo issues. ... proto3 fields unnecessarily serialized. NfNitLoop. NfNitLoop CLOSED · Updated 2 years ago .proto3 input -> .ts3 output.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found