-
Notifications
You must be signed in to change notification settings - Fork 57
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
Compile error regarding rest endpoint method types #488
Comments
Can you please share your |
Could you also check what version of |
Yes, seems like, do you have an idea how to fix it?
|
Interesting! I wonder if we need to update the dependency defined on @gr2m Can you point us in the right direction? |
tsconfig.json
About the snippet - there is nothing special, basically if I import
problem starts to appear. In my case I just do this
|
The Try to delete the |
TypeScript uses the latest version of Error: node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts(903,48): error TS2344: Type '"/orgs/{org_id}/codespaces"' does not satisfy the constraint 'keyof paths'.
Error: node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts(1612,70): error TS2344: Type '"/repos/{owner}/{repo}/community/code_of_conduct"' does not satisfy the constraint 'keyof paths'.
Error: node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts(226,74): error TS2339: Property 'data' does not exist on type 'unknown'.
I'm not sure if this is related to this issue or should I create a new one? |
@a-tarasyuk Can you try updating all of the Octokit packages? I think you'll find this is fixed now. |
It uses the latest version. Has it been updated recently? "@octokit/rest": "latest", |
Yep! I have just released updates to several Octokit packages. Can you tell me the versions of all of your Octokit-related packages in your lock file? |
@timrogers Thanks. The latest version seems to work fine. |
Great - sorry about that! The packages have complicated dependencies and some of them still needed updates. |
I am trying to compile the GH integration code with the following dependencies:
NodeJS version 14.19.1, npm version 6.14.16
What happened?
An error is thrown on the compile stage
What did you expect to happen?
Compilation without errors.
What the problem might be
I suspect that it is somehow related to this issue, but I have version that were issued much lated than the ones described in the fix of this issue.
The text was updated successfully, but these errors were encountered: