You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please select the environment(s) that are relevant to your bug report
TypeScript
Enterprise
Browsers
Node
Deno
Version
Latest per:
import {Octokit} from 'https://cdn.skypack.dev/@octokit/rest';
What happened?
Get a static check error saying that .rest property doesn't exist on Octokit instantiation.
When attempting to run, I get confirmation:
Check file:///Users/dalanmiller/repos/flat/postprocess.ts
error: TS2339 [ERROR]: Property 'rest' does not exist on type 'OctokitWithDefaults'.
await octokit.rest.issues.create({
~~~~
at file:///Users/dalanmiller/repos/flat/postprocess.ts:337:27
Would you be interested in contributing a fix?
yes
The text was updated successfully, but these errors were encountered:
This is most likely related to the Deno compatibility problems we discussed in the other issues and the discussion at #1708.
I'm open to simple fixes that resolve the compatibility problems. I think the proper fix will be #2128, I won't look into Deno compatibility before that myself
Please avoid duplicates
Reproducible test case
https://gist.github.com/dalanmiller/0344b590d83f83f271fb080d9c7be97b
Please select the environment(s) that are relevant to your bug report
Version
Latest per:
What happened?
Get a static check error saying that
.rest
property doesn't exist on Octokit instantiation.When attempting to run, I get confirmation:
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: