Typescript 4.8.2 support
See original GitHub issueTypescript version 4.8.2 just got released. There is deprecated function used in the plugin.
Functions: createParameterDeclaration
Error:
TypeError: Invalid arguments
at Object.createParameterDeclaration (/usr/local/lib/node_modules/@domain/protoc-gen-ts/node_modules/typescript/lib/typescript.js:170461:19)
at createParameter (/usr/local/lib/node_modules/@domain/protoc-gen-ts/src/rpc.js:154:23)
at Object.createGrpcInterfaceType (/usr/local/lib/node_modules/@domain/protoc-gen-ts/src/rpc.js:161:31)
at Object.<anonymous> (/usr/local/lib/node_modules/@domain/protoc-gen-ts/src/index.js:54:32)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
--ts_out: protoc-gen-ts: Plugin failed with status code 1.
According the line 170461 in typescript package it seems like the function was removed completly.
// Deprecations fall into one of three categories:
//
// - "soft" - Soft deprecations are indicated with the `@deprecated` JSDoc Tag.
// - "warn" - Warning deprecations are indicated with the `@deprecated` JSDoc Tag and a diagnostic message (assuming a compatible host).
// - "error" - Error deprecations are either indicated with the `@deprecated` JSDoc tag and will throw a `TypeError` when invoked, or removed from the API entirely.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:16 (1 by maintainers)
Top Results From Across the Web
typescript - npm
4.8.2 • Public • Published 20 days ago ... TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript ...
Read more >Documentation - TypeScript 4.8
To support both legacy decorators and decorators as proposed, TypeScript will have to gracefully parse, and intersperse, modifiers and decorators. To do this, ......
Read more >TypeScript 4.8 Support · Issue #5227 - GitHub
Unconstrained Generics No Longer Assignable to {}; Types Cannot Be Imported/Exported in JavaScript Files; Binding Patterns Do Not Directly Contribute to ...
Read more >What's New in TypeScript 4.8 - Visual Studio Magazine
Microsoft released TypeScript 4.8 with a host of new features ranging from Find All References improvements to the ability to exclude ...
Read more >The Definitive TypeScript 4.8 Guide - SitePen
Syntax and JavaScript support. TypeScript supports current JavaScript syntax (through ES2022), as well as a number of draft language proposals.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thesayyn This is happening on my end too with the latest TypeScript 4.8.3. Installed
protoc-gen-ts
withnpm -g install protoc-gen-ts
and then ranprotoc -I=. hello.proto --ts_out=.
Error call stack is same as post above. Other protobuf compilers (Go, JS) work fine on the same .proto file.hello.proto:
Error call stack is the same as previous post: