-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript 4.8.2 support #170
Comments
@thesayyn This is happening on my end too with the latest TypeScript 4.8.3. hello.proto: syntax = "proto3";
service HelloWorld {
rpc SayHello (HelloRequest) returns (HelloResponse) {}
}
message HelloRequest {
string Name = 1;
}
message HelloResponse {
string Message = 1;
} Error call stack is the same as previous post:
|
Looks like typescript made a breaking change. I'll have look and see what we could use instead without breaking on older version of typescript. |
@btcSteven this worked like a charm, thanks! This is clearly an update that should be done to the package. |
Any news on this? |
change to |
@puzzle9 that also doesn't work. I've forked the repo here and this is what I get
|
yea because it is the source code that needs to be compiled before it can be used simple you can try mkdir protoc-gen-ts
cd protoc-gen-ts
yarn add protoc-gen-ts
mv node_modules/protoc-gen-ts ./pgt
change yarn
mv bin/protoc-gen-ts.js bin/protoc-gen-ts remove global try |
I did the exact same steps but unfortunately the error persist |
Hi, guys~has this problem been solved? |
Not for me.
…On Mon, 21 Nov 2022 at 10:05, David Mokel ***@***.***> wrote:
Hi, guys~has this problem been solved?
—
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACG2OVTQBZO3VKZ6PRSJKXTWJMUOFANCNFSM6AAAAAAQAJ35TY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
me too. so bad |
Hi, guys~ I have solved this problem. you need change package.json "typescript": "^4.3.4" to "typescript": "4.3.4", and remove the node_modules, then npm install or yarn add again. good luck for you~ |
Sorry for being dumb, but package.json of this package? Or the one of my package? Also what if I'm using this package as a global dependency? |
the package.json of this package(protoc-gen-ts) |
I am using this package as a global dependency too, I change the package (protoc-gen-ts) in my gobal path. |
I just did a fresh I see the issue is now closed; should this now be working without manual fiddling of the protoc-gen-ts's package.json? |
could you try with |
thanks. If I use
is that expected? anything to worry about? |
@horacimacias What's your experience? It built with |
I don't think this is creating any issues for me. I am having other issues but I don't think they are related to this, I still need some time to clarify. |
Typescript version 4.8.2 just got released. There is deprecated function used in the plugin.
Functions:
createParameterDeclaration
Error:
According the line 170461 in typescript package it seems like the function was removed completly.
The text was updated successfully, but these errors were encountered: