ts-protoc-gen | Protocol Buffers Compiler plugin for TypeScript
kandi X-RAY | ts-protoc-gen Summary
kandi X-RAY | ts-protoc-gen Summary
Protocol Buffers Compiler (protoc) plugin for TypeScript and gRPC-Web.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ts-protoc-gen
ts-protoc-gen Key Features
ts-protoc-gen Examples and Code Snippets
Community Discussions
Trending Discussions on ts-protoc-gen
QUESTION
I am trying to generate typescript files based on several valid protofiles. The whole script work when generating other types of files - c#, java, etc... However, when trying to generate typescript files there is a problem.
First off, I have installed protoc globally and tried with both ts-protoc-gen and grpc-web_out.
I am executing the following code:
...ANSWER
Answered 2019-Feb-07 at 09:19There is no "quick" answer to this question, as manually compiling your DTOs from proto is not an wide practice. In most cases its something related to the paths that you use.
In your case, since the error is
--ts_out: protoc-gen-ts: Access is denied.
I would assume its something related to protoc-gen-ts plugin
Try this
- npm install ts-protoc-gen -g this would install the plugin globally this means that you can locate it in your AppFolder
- Go to C:\Users\\AppData\Roaming\npm\node_modules if you like to the module installed in this directory , that is your mistake, you need to link to the "compiled" version.
- Link to C:\Users\\AppData\Roaming\npm\protoc-gen-ts.cmd
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ts-protoc-gen
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page