← All tasks
javascriptoctokit/rest.js #45Not a task: not reproduced

Can't get probot/@octokit/rest/plugin-rest-endpoint-methods to compile

envgap__octokit__rest.js-45

01 / FAILURE SIGNATURE

As reported upstream

node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:1801:60 - error TS2339: Property 'POST /repos/{owner}/{repo}/forks{?org,organization}' does not exist on type 'Endpoints'.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
469c0065612f22de059f7774ae377b1794101876
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

octokit/rest.js #45 · read the original issue
There seems to be an incompatibility between `@octokit/rest`, `probot`, and `plugin-rest-endpoint-methods`, such that I cannot get the modules to compile together:



```

node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:1801:60 - error TS2339: Property 'POST /repos/{owner}/{repo}/forks{?org,organization}' does not exist on type 'Endpoints'.



1801             parameters: RequestParameters & Omit<Endpoints["POST /repos/{owner}/{repo}/forks{?org,organization}"]["parameters"], "baseUrl" | "headers" | "mediaType">;

                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:1802:33 - error TS2339: Property 'POST /repos/{owner}/{repo}/forks{?org,organization}' does not exist on type 'Endpoints'.



1802             response: Endpoints["POST /repos/{owner}/{repo}/forks{?org,organization}"]["response"];

                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



node_modules/probot/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:1801:60 - error TS2339: Property 'POST /repos/{owner}/{repo}/forks{?org,organization}' does not exist on type 'Endpoints'.



1801             parameters: RequestParameters & Omit<Endpoints["POST /repos/{owner}/{repo}/forks{?org,organization}"]["parameters"], "baseUrl" | "headers" | "mediaType">;

                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



node_modules/probot/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts:1802:33 - error TS2339: Property 'POST /repos/{owner}/{repo}/forks{?org,organization}' does not exist on type 'Endpoints'.



1802             response: Endpoints["POST /repos/{owner}/{repo}/forks{?org,organization}"]["response"];

```



I can't seem to figure out an approach to make them play nice together.



Refs: https://github.com/googleapis/repo-automation-bots/pull/1660
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]