-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
TypeError: rpc.NotificationType is not a constructor #469
Comments
It seems more related to It you print |
Yes, but the vscode-ws-jsonrpc repo says it's deperecated and point to this?!? :) This is a console.log of rpc.
|
Oops read too fast, vscode-ws-jsonrpc is here, it's not vscode-jsonrpc vscode-ws-jsonrpc doesn't export things from |
Strange, have a look at the files in the npm package, https://www.npmjs.com/package/vscode-ws-jsonrpc?activeTab=code. To me it seems like the files are exported. I'm still using version 2.0.2.
|
Indeed that's strange, @kaisalmen do you have an idea? |
BTW, it's probably a good idea to import them from vscode-jsonrpc directly |
Yes, this is indeed strange. I will to try to reproduce this. |
@erizet sorry, it took a bit longer, but I now tried to reproduce your issue, but I wasn't able to get to your problem.
I have to admit that we only have |
Adding |
I try to run the following sample in Node using ts-node. I keep getting this error.
"TypeError: rpc.NotificationType is not a constructor"
I also get the same error when using rpc.RequestType och RequestType1.
The text was updated successfully, but these errors were encountered: