-
Notifications
You must be signed in to change notification settings - Fork 110
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
Parameter type not assigned for parse in TypeScript. #86
Comments
I suppose because you need to return |
Yeah, you are right!
I have tried node 14.16.1 and 14.0.0, they are corresponding to version 83 (https://nodejs.org/en/download/releases/), but it seems that there is NO version corresponding to version 87, so I am confused. |
Looks like an issue with your environment and somehow customly compiled nodejs version. Could you provide more info:
|
|
You have to compile tree-sitter for the electron version of vs code, not your local node |
@gpetrov @ahlinc Thanks for the hint! I am trying to rebuild it, but the following error is reported:
Node version: 14.16.0 |
This is a common problem when rebuilding node 14+ modules on new macOS. They need c++14 compiler. So just edit binding.gyp and change:
To
|
Seems there is also a PR for this: |
Right, I also found several similar issues in other projects. Now the problem is, since the pr is not merged yet but I am blocked by it, is there any way to rebuild a version and depend it on myself? I guess there should be a way but sorry I am new to node and ts. |
I managed to solve this by manually editing Cheers! |
I am trying to use this lib in TypeScript, with the following code:
However, I am facing the following errors:
I skimmed the issues and found this closed one relevant (#55), any ideas?
The text was updated successfully, but these errors were encountered: