Skip to content
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

When trying to import in deno, a lot of missing dependency errors are thrown #2075

Open
zingi opened this issue Apr 10, 2021 · 62 comments
Open
Labels
deno Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@zingi
Copy link

zingi commented Apr 10, 2021

What happened?

I wanted to import Octokit in deno as described here.

// index.js
import { Octokit } from "https://cdn.skypack.dev/octokit?dts";
console.log(Octokit)
deno run --reload index.js

but a lot of missing dependency errors were thrown:

Error Output
❯ deno run --reload index.js
Download https://cdn.skypack.dev/octokit?dts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=imports/optimized/octokit.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-throttling@v3.4.1-1wb8QKI378sQiyvKtfsY/dist=es2020,mode=imports/optimized/@octokit/plugin-throttling.js
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=imports/optimized/@octokit/plugin-paginate-rest.js
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-3QK7Pkud3HXg1JaN9U2R/dist=es2020,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-B1STqggIC5ttmjDndZOQ/dist=es2020,mode=imports/optimized/@octokit/core.js
Download https://cdn.skypack.dev/-/@octokit/plugin-retry@v3.0.7-QTlPSf0w8dfrSe38Ubqv/dist=es2020,mode=imports/optimized/@octokit/plugin-retry.js
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=imports/optimized/@octokit/app.js
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=imports/optimized/@octokit/oauth-app.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/app.d.ts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=imports/optimized/@octokit/webhooks.js
Download https://cdn.skypack.dev/-/@octokit/auth-unauthenticated@v2.0.4-UGRkBhHwjtk6IwF0KVLH/dist=es2020,mode=imports/optimized/@octokit/auth-unauthenticated.js
Download https://cdn.skypack.dev/-/@octokit/auth-app@v3.3.0-L28kvdoAOBuXVBXFSFLE/dist=es2020,mode=imports/optimized/@octokit/auth-app.js
Download https://cdn.skypack.dev/-/universal-user-agent@v6.0.0-fUAPE3UH5QP7qG0fd0dH/dist=es2020,mode=imports/optimized/universal-user-agent.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-6kDSHkjPobc3v7EdDUrZ/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-app.js
Download https://cdn.skypack.dev/-/fromentries@v1.3.2-xV12OVMQyK4Alyc7h6sI/dist=es2020,mode=imports/optimized/fromentries.js
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=imports/optimized/@octokit/oauth-methods.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-U3ONGxl0F5X4hwkcomel/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-user.js
Download https://cdn.skypack.dev/-/bottleneck@v2.19.5-WnyfIkTTdKNNPUEySJVJ/dist=es2020,mode=imports/unoptimized/light.js
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-mNSFgiNLmVCz49dwB07r/dist=es2020,mode=imports/optimized/@octokit/graphql.js
Download https://cdn.skypack.dev/-/@octokit/auth-token@v2.4.5-jdaltUppqSSeF1LAakAf/dist=es2020,mode=imports/optimized/@octokit/auth-token.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-4Kxn3F9Uik78AlVNJxI5/dist=es2020,mode=imports/optimized/@octokit/request.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=imports/optimized/before-after-hook.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-B1STqggIC5ttmjDndZOQ/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-B1STqggIC5ttmjDndZOQ/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-uMqCh6l8EAWhT0KGvrXK/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-device.js
Download https://cdn.skypack.dev/-/btoa-lite@v1.0.0-EdoP2Wejbuei0whftaMM/dist=es2020,mode=imports/optimized/btoa-lite.js
Download https://cdn.skypack.dev/-/@octokit/endpoint@v6.0.11-Pwm5PA73fBTxFTywuiBB/dist=es2020,mode=imports/optimized/@octokit/endpoint.js
Download https://cdn.skypack.dev/-/is-plain-object@v5.0.0-8mrVMp9y5RYdpZYGe1Tt/dist=es2020,mode=imports/optimized/is-plain-object.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-tcPOyvkNInacY9l6poxY/dist=es2020,mode=imports/optimized/@octokit/request-error.js
Download https://deno.land/std/node/crypto.ts
Download https://cdn.skypack.dev/-/aggregate-error@v3.1.0-SEj1cA2tvXZcRXebUHUI/dist=es2020,mode=imports/optimized/aggregate-error.js
Download https://cdn.skypack.dev/-/universal-github-app-jwt@v1.1.0-TxlnEhpSPAyjsOdxoA3m/dist=es2020,mode=imports/optimized/universal-github-app-jwt.js
Download https://cdn.skypack.dev/-/lru-cache@v6.0.0-IF3dXOIuVvZ6NoDdLuhR/dist=es2020,mode=imports/optimized/lru-cache.js
Download https://cdn.skypack.dev/-/deprecation@v2.3.1-uvOjAQiALAZPHmrlznlP/dist=es2020,mode=imports/optimized/deprecation.js
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=imports/optimized/@octokit/oauth-authorization-url.js
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-tcPOyvkNInacY9l6poxY/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-B1STqggIC5ttmjDndZOQ/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/once@v1.4.0-dZva3nt1fLBY6vpXF5Hj/dist=es2020,mode=imports/optimized/once.js
Download https://cdn.skypack.dev/-/indent-string@v4.0.0-oHjbEh2BQXR9CwWQa6OC/dist=es2020,mode=imports/optimized/indent-string.js
Download https://cdn.skypack.dev/-/clean-stack@v2.2.0-T6Q1GM86WL6IIYyWyZOC/dist=es2020,mode=imports/optimized/clean-stack.js
Download https://cdn.skypack.dev/-/yallist@v4.0.0-zGx9utyhIe9lDU5JvFtt/dist=es2020,mode=imports/optimized/yallist.js
Download https://cdn.skypack.dev/-/wrappy@v1.0.2-e8nLh7Qms0NRhbAbUpJP/dist=es2020,mode=imports/optimized/wrappy.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-4Kxn3F9Uik78AlVNJxI5/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-mNSFgiNLmVCz49dwB07r/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-B1STqggIC5ttmjDndZOQ/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-tcPOyvkNInacY9l6poxY/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-4Kxn3F9Uik78AlVNJxI5/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-mNSFgiNLmVCz49dwB07r/dist=es2020,mode=types/dist-types/index.d.ts
Warning Implicitly using latest version (0.92.0) for https://deno.land/std/node/crypto.ts
Download https://deno.land/std@0.92.0/node/crypto.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-mNSFgiNLmVCz49dwB07r/dist=es2020,mode=types/dist-types/types.d.ts
Download https://deno.land/std@0.92.0/node/_crypto/randomBytes.ts
Download https://deno.land/std@0.92.0/node/buffer.ts
Download https://deno.land/std@0.92.0/hash/mod.ts
Download https://deno.land/std@0.92.0/encoding/hex.ts
Download https://deno.land/std@0.92.0/node/_crypto/pbkdf2.ts
Download https://deno.land/std@0.92.0/node/_stream/transform.ts
Download https://deno.land/std@0.92.0/node/stream.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestParameters.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/AuthInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/Url.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/Fetch.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/EndpointOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestError.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/Route.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/EndpointInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/EndpointDefaults.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/Signal.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/RequestRequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/VERSION.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/ResponseHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/OctokitResponse.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/StrategyInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-0W3jmHJ4BGsot2MQkZWZ/dist=es2020,mode=types/dist-types/generated/Endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-tcPOyvkNInacY9l6poxY/dist=es2020,mode=types/dist-types/types.d.ts
Download https://deno.land/std@0.92.0/node/_utils.ts
Download https://deno.land/std@0.92.0/encoding/base64.ts
Download https://deno.land/std@0.92.0/node/_stream/stream.ts
Download https://deno.land/std@0.92.0/node/_stream/passthrough.ts
Download https://deno.land/std@0.92.0/node/_stream/promises.ts
Download https://deno.land/std@0.92.0/node/_stream/end_of_stream.ts
Download https://deno.land/std@0.92.0/node/_stream/readable.ts
Download https://deno.land/std@0.92.0/node/_stream/writable.ts
Download https://deno.land/std@0.92.0/node/_stream/pipeline.ts
Download https://deno.land/std@0.92.0/node/_stream/duplex.ts
Download https://deno.land/std@0.92.0/node/_crypto/constants.ts
Download https://deno.land/std@0.92.0/node/_crypto/types.ts
Download https://deno.land/std@0.92.0/hash/hasher.ts
Download https://deno.land/std@0.92.0/hash/_wasm/hash.ts
Download https://deno.land/std@0.92.0/node/_errors.ts
Download https://deno.land/std@0.92.0/node/_stream/writable_internal.ts
Download https://deno.land/std@0.92.0/testing/asserts.ts
Download https://deno.land/std@0.92.0/io/util.ts
Download https://deno.land/std@0.92.0/async/mod.ts
Download https://deno.land/std@0.92.0/node/util.ts
Download https://deno.land/std@0.92.0/node/events.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/index.d.ts
Download https://deno.land/std@0.92.0/node/_stream/symbols.ts
Download https://deno.land/std@0.92.0/hash/_wasm/wasm.js
Download https://deno.land/std@0.92.0/node/_stream/from.ts
Download https://deno.land/std@0.92.0/node/_stream/buffer_list.ts
Download https://deno.land/std@0.92.0/node/_stream/readable_internal.ts
Download https://deno.land/std@0.92.0/node/string_decoder.ts
Download https://deno.land/std@0.92.0/node/_stream/async_iterator.ts
Download https://deno.land/std@0.92.0/node/_stream/destroy.ts
Download https://deno.land/std@0.92.0/node/_stream/duplex_internal.ts
Download https://deno.land/std@0.92.0/io/buffer.ts
Download https://deno.land/std@0.92.0/fmt/colors.ts
Download https://deno.land/std@0.92.0/testing/_diff.ts
Download https://deno.land/std@0.92.0/async/deferred.ts
Download https://deno.land/std@0.92.0/async/pool.ts
Download https://deno.land/std@0.92.0/async/mux_async_iterator.ts
Download https://deno.land/std@0.92.0/async/delay.ts
Download https://deno.land/std@0.92.0/_util/assert.ts
Download https://deno.land/std@0.92.0/node/_util/_util_callbackify.ts
Download https://deno.land/std@0.92.0/node/_util/_util_promisify.ts
Download https://deno.land/std@0.92.0/node/_util/_util_types.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/delete-authorization.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-3QK7Pkud3HXg1JaN9U2R/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/create-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/reset-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/delete-token.d.ts
Download https://cdn.skypack.dev/error/unknown:@octokit/webhooks?from=octokit
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/get-user-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/methods/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-3QK7Pkud3HXg1JaN9U2R/dist=es2020,mode=types/dist-types/generated/method-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-6kDSHkjPobc3v7EdDUrZ/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-U3ONGxl0F5X4hwkcomel/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/oauth-app-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/generated/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-6kDSHkjPobc3v7EdDUrZ/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-6kDSHkjPobc3v7EdDUrZ/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/middleware/...d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/app
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/dist-types/compose-paginate.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/dist-types/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-uMqCh6l8EAWhT0KGvrXK/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-U3ONGxl0F5X4hwkcomel/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/exchange-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/exchange-web-flow-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/delete-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/delete-authorization.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/create-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-jD9lUHb6Uxw4mEAYDuA6/dist=es2020,mode=types/dist-types/reset-token.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/oauth-app
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-3nV3SuQ7Ua8MHSui5kTk/dist=es2020,mode=types/dist-types/generated/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-U3ONGxl0F5X4hwkcomel/dist=es2020,mode=types/dist-types/requires-basic-auth.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-U3ONGxl0F5X4hwkcomel/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/event-handler/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/verify/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/sign/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/generated/webhook-names.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks-definitions@v3.65.5-XixKjpjlyxIJw8OSOhZG/dist=es2020,mode=types/schema.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/createLogger.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-uMqCh6l8EAWhT0KGvrXK/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-3QK7Pkud3HXg1JaN9U2R/dist=es2020,mode=types/dist-types/generated/parameters-and-response-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-uMqCh6l8EAWhT0KGvrXK/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/error/unknown:node?from=@octokit/webhooks
Download https://cdn.skypack.dev/error/http?from=@octokit/webhooks
Check file:///Users/aaron/Downloads/deno_test/index.ts
error: TS2694 [ERROR]: Namespace '__' has no exported member 'Api'.
} & import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-3QK7Pkud3HXg1JaN9U2R/dist=es2020,mode=types/dist-types/types.d.ts").Api>;
                                                                                                                                ~~~
    at https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/octokit.d.ts:4:129

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/oauth-app";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/oauth-app";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:27

TS2694 [ERROR]: Namespace '__' has no exported member 'IncomingMessage'.
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:5:196

TS2694 [ERROR]: Namespace '__' has no exported member 'ServerResponse'.
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.0-TQUK3MKiCoUClhCisnYQ/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:5:269

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage } from "/error/http?from=@octokit/webhooks";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts:2:10

TS2671 [ERROR]: Cannot augment module 'http' because it resolves to a non-module entity.
declare module 'http' {
               ~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts:3:16

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/webhooks";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/webhooks";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:27

TS2694 [ERROR]: Namespace '__' has no exported member 'IncomingMessage'.
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:6:178

TS2694 [ERROR]: Namespace '__' has no exported member 'ServerResponse'.
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:6:250

TS2688 [ERROR]: Cannot find type definition file for '/error/unknown:node?from=@octokit/webhooks'.
/// <reference types="/error/unknown:node?from=@octokit/webhooks" />
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.3-oxnmNOopjs72FJOjIhBG/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:3:23

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/app";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/app";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:2:27

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'App'.
import { App } from "../...d.ts";
         ~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.1-gWU9ujRd97F2jEDGwkLC/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:3:10

TS2694 [ERROR]: Namespace '"https://cdn.skypack.dev/error/unknown:@octokit/webhooks?from=octokit"' has no exported member 'Webhooks'.
    webhooks: import("/error/unknown:@octokit/webhooks?from=octokit").Webhooks<{
                                                                      ~~~~~~~~
    at https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/app.d.ts:7:71

TS2305 [ERROR]: Module '"https://cdn.skypack.dev/-/octokit@v1.0.0-Ne7e9smG1qfLZEXbDzkT/dist=es2020,mode=types/dist-types/index.d.ts"' has no exported member 'Action'.
import { Octokit, App, Action } from "https://cdn.skypack.dev/octokit?dts";
                       ~~~~~~
    at file:///Users/aaron/Downloads/deno_test/index.ts:1:24

Found 17 errors.

What am I doing wrong?

What did you expect to happen?

no missing dependency errors

Environment

❯ deno --version            
deno 1.8.3 (release, x86_64-apple-darwin)
v8 9.0.257.3
typescript 4.2.2
@wolfy1339
Copy link
Member

Does the plain JS work in deno, or is it just the TypeScript giving trouble?

@wolfy1339
Copy link
Member

Relevant NodeJS to deno mappings

import  { ServerResponse } from 'http' => import { Response } from "https://deno.land/std@0.92.0/http/server.ts"
# The following one, I'm not too sure about this one
import { IncomingMessage } from 'http' => import { ServerRequest } from "https://deno.land/std@0.92.0/http/server.ts"

@zingi
Copy link
Author

zingi commented Apr 11, 2021

index.ts

// index.ts
// deno run --reload index.ts
import { Octokit } from 'https://cdn.skypack.dev/octokit?dts';
console.log(Octokit)
Errors
❯ deno run --reload index.ts
Download https://cdn.skypack.dev/octokit?dts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=imports/optimized/octokit.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=imports/optimized/@octokit/plugin-paginate-rest.js
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=imports/optimized/@octokit/app.js
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=imports/optimized/@octokit/oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=imports/optimized/@octokit/core.js
Download https://cdn.skypack.dev/-/@octokit/plugin-throttling@v3.4.1-CuTEyIBPzuT1nJmeORQ1/dist=es2020,mode=imports/optimized/@octokit/plugin-throttling.js
Download https://cdn.skypack.dev/-/@octokit/plugin-retry@v3.0.7-OHT6Zc5FhDc9VKcS11cV/dist=es2020,mode=imports/optimized/@octokit/plugin-retry.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/app.d.ts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/octokit.d.ts
Download https://cdn.skypack.dev/-/bottleneck@v2.19.5-WnyfIkTTdKNNPUEySJVJ/dist=es2020,mode=imports/unoptimized/light.js
Download https://cdn.skypack.dev/-/universal-user-agent@v6.0.0-fUAPE3UH5QP7qG0fd0dH/dist=es2020,mode=imports/optimized/universal-user-agent.js
Download https://cdn.skypack.dev/-/fromentries@v1.3.2-xV12OVMQyK4Alyc7h6sI/dist=es2020,mode=imports/optimized/fromentries.js
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=imports/optimized/@octokit/oauth-methods.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-user.js
Download https://cdn.skypack.dev/-/@octokit/auth-unauthenticated@v2.0.4-e4ciWyBBTeXWgO1uc9ba/dist=es2020,mode=imports/optimized/@octokit/auth-unauthenticated.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=imports/optimized/before-after-hook.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=imports/optimized/@octokit/request.js
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=imports/optimized/@octokit/graphql.js
Download https://cdn.skypack.dev/-/@octokit/auth-token@v2.4.5-HWrZAcKLxm1HmrooQhQr/dist=es2020,mode=imports/optimized/@octokit/auth-token.js
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=imports/optimized/@octokit/webhooks.js
Download https://cdn.skypack.dev/-/@octokit/auth-app@v3.3.0-dXuZDQqFx2rak8cRScht/dist=es2020,mode=imports/optimized/@octokit/auth-app.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=imports/optimized/@octokit/request-error.js
Download https://cdn.skypack.dev/-/btoa-lite@v1.0.0-EdoP2Wejbuei0whftaMM/dist=es2020,mode=imports/optimized/btoa-lite.js
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=imports/optimized/@octokit/oauth-authorization-url.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-device.js
Download https://cdn.skypack.dev/-/is-plain-object@v5.0.0-8mrVMp9y5RYdpZYGe1Tt/dist=es2020,mode=imports/optimized/is-plain-object.js
Download https://cdn.skypack.dev/-/@octokit/endpoint@v6.0.11-geB6rDHnVuEd8w66vD85/dist=es2020,mode=imports/optimized/@octokit/endpoint.js
Download https://cdn.skypack.dev/-/aggregate-error@v3.1.0-SEj1cA2tvXZcRXebUHUI/dist=es2020,mode=imports/optimized/aggregate-error.js
Download https://cdn.skypack.dev/-/@octokit/webhooks-methods@v1.0.0-rlfF4ZcgDAA1hHOVPS0c/dist=es2020,mode=imports/optimized/@octokit/webhooks-methods.js
Download https://cdn.skypack.dev/-/deprecation@v2.3.1-uvOjAQiALAZPHmrlznlP/dist=es2020,mode=imports/optimized/deprecation.js
Download https://cdn.skypack.dev/-/universal-github-app-jwt@v1.1.0-TxlnEhpSPAyjsOdxoA3m/dist=es2020,mode=imports/optimized/universal-github-app-jwt.js
Download https://cdn.skypack.dev/-/lru-cache@v6.0.0-IF3dXOIuVvZ6NoDdLuhR/dist=es2020,mode=imports/optimized/lru-cache.js
Download https://cdn.skypack.dev/-/once@v1.4.0-dZva3nt1fLBY6vpXF5Hj/dist=es2020,mode=imports/optimized/once.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/clean-stack@v2.2.0-T6Q1GM86WL6IIYyWyZOC/dist=es2020,mode=imports/optimized/clean-stack.js
Download https://cdn.skypack.dev/-/indent-string@v4.0.0-oHjbEh2BQXR9CwWQa6OC/dist=es2020,mode=imports/optimized/indent-string.js
Download https://cdn.skypack.dev/-/yallist@v4.0.0-zGx9utyhIe9lDU5JvFtt/dist=es2020,mode=imports/optimized/yallist.js
Download https://cdn.skypack.dev/-/wrappy@v1.0.2-e8nLh7Qms0NRhbAbUpJP/dist=es2020,mode=imports/optimized/wrappy.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/VERSION.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/AuthInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Url.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestError.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestRequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestParameters.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Fetch.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Route.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/OctokitResponse.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/ResponseHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointDefaults.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Signal.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/StrategyInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/generated/Endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/delete-authorization.d.ts
Download https://cdn.skypack.dev/error/unknown:@octokit/webhooks?from=octokit
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/get-user-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/delete-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/create-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/reset-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/generated/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/generated/method-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/oauth-app-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/compose-paginate.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/reset-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/delete-authorization.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/delete-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/create-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/exchange-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/exchange-web-flow-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/generated/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/requires-basic-auth.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/app
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/...d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestParameters.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Url.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointDefaults.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Route.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/StrategyInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Fetch.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/AuthInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/OctokitResponse.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/ResponseHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestError.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestRequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Signal.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/VERSION.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/generated/Endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/oauth-app
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/generated/parameters-and-response-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/event-handler/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks-definitions@v3.65.5-GtqjzQ97ootKDYgvAIOu/dist=es2020,mode=types/schema.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/generated/webhook-names.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/createLogger.d.ts
Download https://cdn.skypack.dev/error/unknown:node?from=@octokit/webhooks
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/webhooks
Check file:///Users/aaron/Downloads/deno_test/index.ts
error: TS2694 [ERROR]: Namespace '__' has no exported member 'Api'.
} & import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/types.d.ts").Api>;
                                                                                                                                ~~~
    at https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/octokit.d.ts:4:129

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/oauth-app";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/oauth-app";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:27

TS2694 [ERROR]: Namespace '__' has no exported member 'IncomingMessage'.
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:5:196

TS2694 [ERROR]: Namespace '__' has no exported member 'ServerResponse'.
    at https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:5:269

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage } from "/error/http?from=@octokit/webhooks";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts:2:10

TS2671 [ERROR]: Cannot augment module 'http' because it resolves to a non-module entity.
declare module 'http' {
               ~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts:3:16

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/webhooks";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/webhooks";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts:2:27

TS2694 [ERROR]: Namespace '__' has no exported member 'IncomingMessage'.
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:6:178

TS2694 [ERROR]: Namespace '__' has no exported member 'ServerResponse'.
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:6:250

TS2688 [ERROR]: Cannot find type definition file for '/error/unknown:node?from=@octokit/webhooks'.
/// <reference types="/error/unknown:node?from=@octokit/webhooks" />
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:3:23

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'IncomingMessage'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/app";
         ~~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:2:10

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'ServerResponse'.
import { IncomingMessage, ServerResponse } from "/error/http?from=@octokit/app";
                          ~~~~~~~~~~~~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:2:27

TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'App'.
import { App } from "../...d.ts";
         ~~~
    at https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts:3:10

TS2694 [ERROR]: Namespace '"https://cdn.skypack.dev/error/unknown:@octokit/webhooks?from=octokit"' has no exported member 'Webhooks'.
    webhooks: import("/error/unknown:@octokit/webhooks?from=octokit").Webhooks<{
                                                                      ~~~~~~~~
    at https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/app.d.ts:7:71

Found 16 errors.
// index.ts
// deno run --reload index.ts
import { Octokit } from 'https://cdn.skypack.dev/octokit';
console.log(Octokit)
No Error
❯ deno run --reload index.ts
Download https://cdn.skypack.dev/octokit
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=imports/optimized/octokit.js
Download https://cdn.skypack.dev/-/@octokit/plugin-retry@v3.0.7-OHT6Zc5FhDc9VKcS11cV/dist=es2020,mode=imports/optimized/@octokit/plugin-retry.js
Download https://cdn.skypack.dev/-/@octokit/plugin-throttling@v3.4.1-CuTEyIBPzuT1nJmeORQ1/dist=es2020,mode=imports/optimized/@octokit/plugin-throttling.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=imports/optimized/@octokit/core.js
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=imports/optimized/@octokit/app.js
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=imports/optimized/@octokit/plugin-paginate-rest.js
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=imports/optimized/@octokit/oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/auth-unauthenticated@v2.0.4-e4ciWyBBTeXWgO1uc9ba/dist=es2020,mode=imports/optimized/@octokit/auth-unauthenticated.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-user.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=imports/optimized/@octokit/oauth-methods.js
Download https://cdn.skypack.dev/-/fromentries@v1.3.2-xV12OVMQyK4Alyc7h6sI/dist=es2020,mode=imports/optimized/fromentries.js
Download https://cdn.skypack.dev/-/universal-user-agent@v6.0.0-fUAPE3UH5QP7qG0fd0dH/dist=es2020,mode=imports/optimized/universal-user-agent.js
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=imports/optimized/@octokit/webhooks.js
Download https://cdn.skypack.dev/-/@octokit/auth-app@v3.3.0-dXuZDQqFx2rak8cRScht/dist=es2020,mode=imports/optimized/@octokit/auth-app.js
Download https://cdn.skypack.dev/-/bottleneck@v2.19.5-WnyfIkTTdKNNPUEySJVJ/dist=es2020,mode=imports/unoptimized/light.js
Download https://cdn.skypack.dev/-/@octokit/auth-token@v2.4.5-HWrZAcKLxm1HmrooQhQr/dist=es2020,mode=imports/optimized/@octokit/auth-token.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=imports/optimized/before-after-hook.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=imports/optimized/@octokit/request.js
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=imports/optimized/@octokit/graphql.js
Download https://cdn.skypack.dev/-/btoa-lite@v1.0.0-EdoP2Wejbuei0whftaMM/dist=es2020,mode=imports/optimized/btoa-lite.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-device.js
Download https://cdn.skypack.dev/-/aggregate-error@v3.1.0-SEj1cA2tvXZcRXebUHUI/dist=es2020,mode=imports/optimized/aggregate-error.js
Download https://cdn.skypack.dev/-/@octokit/webhooks-methods@v1.0.0-rlfF4ZcgDAA1hHOVPS0c/dist=es2020,mode=imports/optimized/@octokit/webhooks-methods.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=imports/optimized/@octokit/request-error.js
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=imports/optimized/@octokit/oauth-authorization-url.js
Download https://cdn.skypack.dev/-/universal-github-app-jwt@v1.1.0-TxlnEhpSPAyjsOdxoA3m/dist=es2020,mode=imports/optimized/universal-github-app-jwt.js
Download https://cdn.skypack.dev/-/lru-cache@v6.0.0-IF3dXOIuVvZ6NoDdLuhR/dist=es2020,mode=imports/optimized/lru-cache.js
Download https://cdn.skypack.dev/-/deprecation@v2.3.1-uvOjAQiALAZPHmrlznlP/dist=es2020,mode=imports/optimized/deprecation.js
Download https://cdn.skypack.dev/-/@octokit/endpoint@v6.0.11-geB6rDHnVuEd8w66vD85/dist=es2020,mode=imports/optimized/@octokit/endpoint.js
Download https://cdn.skypack.dev/-/is-plain-object@v5.0.0-8mrVMp9y5RYdpZYGe1Tt/dist=es2020,mode=imports/optimized/is-plain-object.js
Download https://cdn.skypack.dev/-/indent-string@v4.0.0-oHjbEh2BQXR9CwWQa6OC/dist=es2020,mode=imports/optimized/indent-string.js
Download https://cdn.skypack.dev/-/clean-stack@v2.2.0-T6Q1GM86WL6IIYyWyZOC/dist=es2020,mode=imports/optimized/clean-stack.js
Download https://cdn.skypack.dev/-/once@v1.4.0-dZva3nt1fLBY6vpXF5Hj/dist=es2020,mode=imports/optimized/once.js
Download https://cdn.skypack.dev/-/yallist@v4.0.0-zGx9utyhIe9lDU5JvFtt/dist=es2020,mode=imports/optimized/yallist.js
Download https://cdn.skypack.dev/-/wrappy@v1.0.2-e8nLh7Qms0NRhbAbUpJP/dist=es2020,mode=imports/optimized/wrappy.js
Check file:///Users/aaron/Downloads/deno_test/index.ts
[Function: OctokitWithDefaults]

index.js

// index.js
// deno run --reload index.js
import { Octokit } from 'https://cdn.skypack.dev/octokit?dts';
console.log(Octokit)
No Error
❯ deno run --reload index.js
Download https://cdn.skypack.dev/octokit?dts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=imports/optimized/octokit.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=imports/optimized/@octokit/app.js
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=imports/optimized/@octokit/plugin-paginate-rest.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=imports/optimized/@octokit/core.js
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=imports/optimized/@octokit/oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/plugin-retry@v3.0.7-OHT6Zc5FhDc9VKcS11cV/dist=es2020,mode=imports/optimized/@octokit/plugin-retry.js
Download https://cdn.skypack.dev/-/@octokit/plugin-throttling@v3.4.1-CuTEyIBPzuT1nJmeORQ1/dist=es2020,mode=imports/optimized/@octokit/plugin-throttling.js
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/octokit.d.ts
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=types/dist-types/app.d.ts
Download https://cdn.skypack.dev/-/bottleneck@v2.19.5-WnyfIkTTdKNNPUEySJVJ/dist=es2020,mode=imports/unoptimized/light.js
Download https://cdn.skypack.dev/-/@octokit/auth-unauthenticated@v2.0.4-e4ciWyBBTeXWgO1uc9ba/dist=es2020,mode=imports/optimized/@octokit/auth-unauthenticated.js
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=imports/optimized/@octokit/webhooks.js
Download https://cdn.skypack.dev/-/@octokit/auth-app@v3.3.0-dXuZDQqFx2rak8cRScht/dist=es2020,mode=imports/optimized/@octokit/auth-app.js
Download https://cdn.skypack.dev/-/universal-user-agent@v6.0.0-fUAPE3UH5QP7qG0fd0dH/dist=es2020,mode=imports/optimized/universal-user-agent.js
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=imports/optimized/@octokit/graphql.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=imports/optimized/before-after-hook.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=imports/optimized/@octokit/request.js
Download https://cdn.skypack.dev/-/@octokit/auth-token@v2.4.5-HWrZAcKLxm1HmrooQhQr/dist=es2020,mode=imports/optimized/@octokit/auth-token.js
Download https://cdn.skypack.dev/-/fromentries@v1.3.2-xV12OVMQyK4Alyc7h6sI/dist=es2020,mode=imports/optimized/fromentries.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=imports/optimized/@octokit/oauth-methods.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-user.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/endpoint@v6.0.11-geB6rDHnVuEd8w66vD85/dist=es2020,mode=imports/optimized/@octokit/endpoint.js
Download https://cdn.skypack.dev/-/is-plain-object@v5.0.0-8mrVMp9y5RYdpZYGe1Tt/dist=es2020,mode=imports/optimized/is-plain-object.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=imports/optimized/@octokit/request-error.js
Download https://cdn.skypack.dev/-/btoa-lite@v1.0.0-EdoP2Wejbuei0whftaMM/dist=es2020,mode=imports/optimized/btoa-lite.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-device.js
Download https://cdn.skypack.dev/-/@octokit/webhooks-methods@v1.0.0-rlfF4ZcgDAA1hHOVPS0c/dist=es2020,mode=imports/optimized/@octokit/webhooks-methods.js
Download https://cdn.skypack.dev/-/aggregate-error@v3.1.0-SEj1cA2tvXZcRXebUHUI/dist=es2020,mode=imports/optimized/aggregate-error.js
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=imports/optimized/@octokit/oauth-authorization-url.js
Download https://cdn.skypack.dev/-/universal-github-app-jwt@v1.1.0-TxlnEhpSPAyjsOdxoA3m/dist=es2020,mode=imports/optimized/universal-github-app-jwt.js
Download https://cdn.skypack.dev/-/deprecation@v2.3.1-uvOjAQiALAZPHmrlznlP/dist=es2020,mode=imports/optimized/deprecation.js
Download https://cdn.skypack.dev/-/lru-cache@v6.0.0-IF3dXOIuVvZ6NoDdLuhR/dist=es2020,mode=imports/optimized/lru-cache.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/once@v1.4.0-dZva3nt1fLBY6vpXF5Hj/dist=es2020,mode=imports/optimized/once.js
Download https://cdn.skypack.dev/-/clean-stack@v2.2.0-T6Q1GM86WL6IIYyWyZOC/dist=es2020,mode=imports/optimized/clean-stack.js
Download https://cdn.skypack.dev/-/indent-string@v4.0.0-oHjbEh2BQXR9CwWQa6OC/dist=es2020,mode=imports/optimized/indent-string.js
Download https://cdn.skypack.dev/-/yallist@v4.0.0-zGx9utyhIe9lDU5JvFtt/dist=es2020,mode=imports/optimized/yallist.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/wrappy@v1.0.2-e8nLh7Qms0NRhbAbUpJP/dist=es2020,mode=imports/optimized/wrappy.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestRequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/OctokitResponse.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Fetch.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/AuthInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestError.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestParameters.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/StrategyInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/VERSION.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointDefaults.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Route.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/RequestMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/ResponseHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/generated/Endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Url.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/EndpointInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-XjQ3L77ISK434fn0II6C/dist=es2020,mode=types/dist-types/Signal.d.ts
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/create-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/error/unknown:@octokit/webhooks?from=octokit
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/get-user-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/delete-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/delete-authorization.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/reset-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/methods/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/generated/method-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/generated/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/openapi-types@v6.0.0-cHQYdirlcLqCFKB7JXw3/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/oauth-app-octokit.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/compose-paginate.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=types/dist-types/generated/paginating-endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/oauth-app
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=types/dist-types/middleware/...d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/app
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/delete-authorization.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/version.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/delete-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/get-web-flow-authorization-url.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/create-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/check-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/exchange-web-flow-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/refresh-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/reset-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/scope-token.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=types/dist-types/exchange-device-code.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Url.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestRequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/ResponseHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestHeaders.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestError.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestParameters.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Route.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/StrategyInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/VERSION.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointDefaults.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Signal.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/AuthInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/OctokitResponse.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/Fetch.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestMethod.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestOptions.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/EndpointInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/generated/Endpoints.d.ts
Download https://cdn.skypack.dev/-/@octokit/types@v6.13.0-SdqVebPLtuRgWrmCRXvw/dist=es2020,mode=types/dist-types/RequestInterface.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/event-handler/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=types/dist-types/requires-basic-auth.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/generated/webhook-names.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks-definitions@v3.65.5-GtqjzQ97ootKDYgvAIOu/dist=es2020,mode=types/schema.d.ts
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/createLogger.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/index.d.ts
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=types/dist-types/generated/parameters-and-response-types.d.ts
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=types/dist-types/types.d.ts
Download https://cdn.skypack.dev/error/unknown:node?from=@octokit/webhooks
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/types.d.ts
Download https://cdn.skypack.dev/error/http?from=@octokit/webhooks
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=types/dist-types/middleware/node/get-payload.d.ts
[Function: OctokitWithDefaults]
// index.js
// deno run --reload index.js
import { Octokit } from 'https://cdn.skypack.dev/octokit';
console.log(Octokit)
No Error
❯ deno run --reload index.js
Download https://cdn.skypack.dev/octokit
Download https://cdn.skypack.dev/-/octokit@v1.0.0-LhPR2gaXhr1VKKP74J2y/dist=es2020,mode=imports/optimized/octokit.js
Download https://cdn.skypack.dev/-/@octokit/plugin-rest-endpoint-methods@v5.0.0-Zc0S0M8Ns69A7o3GvF5A/dist=es2020,mode=imports/optimized/@octokit/plugin-rest-endpoint-methods.js
Download https://cdn.skypack.dev/-/@octokit/core@v3.4.0-AQWCLPafqt3iY605wLTq/dist=es2020,mode=imports/optimized/@octokit/core.js
Download https://cdn.skypack.dev/-/@octokit/plugin-throttling@v3.4.1-CuTEyIBPzuT1nJmeORQ1/dist=es2020,mode=imports/optimized/@octokit/plugin-throttling.js
Download https://cdn.skypack.dev/-/@octokit/app@v11.4.2-YrIotdAKb3mbOVv8wgCW/dist=es2020,mode=imports/optimized/@octokit/app.js
Download https://cdn.skypack.dev/-/@octokit/oauth-app@v3.3.1-8PMU2pL42arPcPaNBpyx/dist=es2020,mode=imports/optimized/@octokit/oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/plugin-retry@v3.0.7-OHT6Zc5FhDc9VKcS11cV/dist=es2020,mode=imports/optimized/@octokit/plugin-retry.js
Download https://cdn.skypack.dev/-/@octokit/plugin-paginate-rest@v2.13.3-megl9chwdxc3cALLTsKT/dist=es2020,mode=imports/optimized/@octokit/plugin-paginate-rest.js
Download https://cdn.skypack.dev/-/bottleneck@v2.19.5-WnyfIkTTdKNNPUEySJVJ/dist=es2020,mode=imports/unoptimized/light.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-app@v4.1.2-m6YV3maHQQd3n3snItsW/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-app.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-user@v1.2.4-7Dp0RqecikvX8s2Lurpp/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-user.js
Download https://cdn.skypack.dev/-/@octokit/oauth-methods@v1.2.2-y2Ng8bT1Fsy5UHS4jhf8/dist=es2020,mode=imports/optimized/@octokit/oauth-methods.js
Download https://cdn.skypack.dev/-/@octokit/auth-unauthenticated@v2.0.4-e4ciWyBBTeXWgO1uc9ba/dist=es2020,mode=imports/optimized/@octokit/auth-unauthenticated.js
Download https://cdn.skypack.dev/-/fromentries@v1.3.2-xV12OVMQyK4Alyc7h6sI/dist=es2020,mode=imports/optimized/fromentries.js
Download https://cdn.skypack.dev/-/universal-user-agent@v6.0.0-fUAPE3UH5QP7qG0fd0dH/dist=es2020,mode=imports/optimized/universal-user-agent.js
Download https://cdn.skypack.dev/-/before-after-hook@v2.2.1-ScsE5eGrAt3c0oni5495/dist=es2020,mode=imports/optimized/before-after-hook.js
Download https://cdn.skypack.dev/-/@octokit/graphql@v4.6.1-02l0jcnoaWY0hJTwRUeE/dist=es2020,mode=imports/optimized/@octokit/graphql.js
Download https://cdn.skypack.dev/-/@octokit/auth-token@v2.4.5-HWrZAcKLxm1HmrooQhQr/dist=es2020,mode=imports/optimized/@octokit/auth-token.js
Download https://cdn.skypack.dev/-/@octokit/request@v5.4.15-rlApEC0FqMPdNg3yruzd/dist=es2020,mode=imports/optimized/@octokit/request.js
Download https://cdn.skypack.dev/-/@octokit/webhooks@v9.0.0-beta.4-OG0UnXsP1byjsSq30bs8/dist=es2020,mode=imports/optimized/@octokit/webhooks.js
Download https://cdn.skypack.dev/-/@octokit/auth-app@v3.3.0-dXuZDQqFx2rak8cRScht/dist=es2020,mode=imports/optimized/@octokit/auth-app.js
Download https://cdn.skypack.dev/-/@octokit/endpoint@v6.0.11-geB6rDHnVuEd8w66vD85/dist=es2020,mode=imports/optimized/@octokit/endpoint.js
Download https://cdn.skypack.dev/-/@octokit/request-error@v2.0.5-BrtXAdDILQmCuMUwJPzF/dist=es2020,mode=imports/optimized/@octokit/request-error.js
Download https://cdn.skypack.dev/-/is-plain-object@v5.0.0-8mrVMp9y5RYdpZYGe1Tt/dist=es2020,mode=imports/optimized/is-plain-object.js
Download https://cdn.skypack.dev/-/btoa-lite@v1.0.0-EdoP2Wejbuei0whftaMM/dist=es2020,mode=imports/optimized/btoa-lite.js
Download https://cdn.skypack.dev/-/@octokit/oauth-authorization-url@v4.3.1-zPhqywOTFe9chHuBbvUo/dist=es2020,mode=imports/optimized/@octokit/oauth-authorization-url.js
Download https://cdn.skypack.dev/-/deprecation@v2.3.1-uvOjAQiALAZPHmrlznlP/dist=es2020,mode=imports/optimized/deprecation.js
Download https://cdn.skypack.dev/-/universal-github-app-jwt@v1.1.0-TxlnEhpSPAyjsOdxoA3m/dist=es2020,mode=imports/optimized/universal-github-app-jwt.js
Download https://cdn.skypack.dev/-/lru-cache@v6.0.0-IF3dXOIuVvZ6NoDdLuhR/dist=es2020,mode=imports/optimized/lru-cache.js
Download https://cdn.skypack.dev/-/@octokit/auth-oauth-device@v3.1.1-89rvZXRammidtpSH2vYK/dist=es2020,mode=imports/optimized/@octokit/auth-oauth-device.js
Download https://cdn.skypack.dev/-/aggregate-error@v3.1.0-SEj1cA2tvXZcRXebUHUI/dist=es2020,mode=imports/optimized/aggregate-error.js
Download https://cdn.skypack.dev/-/@octokit/webhooks-methods@v1.0.0-rlfF4ZcgDAA1hHOVPS0c/dist=es2020,mode=imports/optimized/@octokit/webhooks-methods.js
Download https://cdn.skypack.dev/-/yallist@v4.0.0-zGx9utyhIe9lDU5JvFtt/dist=es2020,mode=imports/optimized/yallist.js
Download https://cdn.skypack.dev/-/clean-stack@v2.2.0-T6Q1GM86WL6IIYyWyZOC/dist=es2020,mode=imports/optimized/clean-stack.js
Download https://cdn.skypack.dev/-/indent-string@v4.0.0-oHjbEh2BQXR9CwWQa6OC/dist=es2020,mode=imports/optimized/indent-string.js
Download https://cdn.skypack.dev/-/once@v1.4.0-dZva3nt1fLBY6vpXF5Hj/dist=es2020,mode=imports/optimized/once.js
Download https://cdn.skypack.dev/-/wrappy@v1.0.2-e8nLh7Qms0NRhbAbUpJP/dist=es2020,mode=imports/optimized/wrappy.js
[Function: OctokitWithDefaults]

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

Thank you for reporting the problem, I'm having a look into it.

For the time being, you can use @octokit/core

import { Octokit } from "https://cdn.skypack.dev/@octokit/core?dts";

const octokit = new Octokit();

const { data } = await octokit.request("GET /");
console.log(data);

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

It seems like you can re-create the Octokit class from the octokit module yourself:

import { Octokit as OctokitCore } from "https://cdn.skypack.dev/@octokit/core?dts";
import { paginateRest } from "https://cdn.skypack.dev/@octokit/plugin-paginate-rest?dts";
import { restEndpointMethods } from "https://cdn.skypack.dev/@octokit/plugin-rest-endpoint-methods?dts";
import { retry } from "https://cdn.skypack.dev/@octokit/plugin-retry?dts";
import { throttling } from "https://cdn.skypack.dev/@octokit/plugin-throttling?dts";

export const Octokit = OctokitCore.plugin(
  restEndpointMethods,
  paginateRest,
  retry,
  throttling
).defaults({
  userAgent: `my-app/1.2.3`,
  throttle: {
    onRateLimit,
    onAbuseLimit,
  },
});

// istanbul ignore next no need to test internals of the throttle plugin
function onRateLimit(retryAfter: number, options: any, octokit: any) {
  octokit.log.warn(
    `Request quota exhausted for request ${options.method} ${options.url}`
  );

  if (options.request.retryCount === 0) {
    // only retries once
    octokit.log.info(`Retrying after ${retryAfter} seconds!`);
    return true;
  }
}

// istanbul ignore next no need to test internals of the throttle plugin
function onAbuseLimit(retryAfter: number, options: any, octokit: any) {
  octokit.log.warn(
    `Abuse detected for request ${options.method} ${options.url}`
  );

  if (options.request.retryCount === 0) {
    // only retries once
    octokit.log.info(`Retrying after ${retryAfter} seconds!`);
    return true;
  }
}

const octokit = new Octokit({
  auth: Deno.env.get("GITHUB_TOKEN"),
});

const { data: user } = await octokit.request("GET /user");
console.log(user);

I do not get the correct Type Intellisense for octokit.request("") though, not sure if that is related. It worked before :/ It might be related to deno, or to Skypack, or to code changes in @octokit. It's probably time we set up some deno tests to catch that earlier

I do get the Type Intellisense in VS Code with the official plugin now.

image

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

The errors about ServerResponse and IncomingMessage are coming from the node middleware that is exported by some of the packages, e.g. @octokit/webhooks: https://github.com/octokit/webhooks.js#createnodemiddleware

The proper solution would be to take advantage of ES Modules and conditional exports in package.json, that way we can hide things that are not relevant to a runtime environment, and instead export a middleware for deno, or for fetch/ServiceWorkers when run in the browser.

I'm not sure ho to workaround this problem for the time being, I'm open to suggestions

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

I talked to folks in the deno Discord help channel. I learned about https://esm.sh/, but it shows even more errors than Skypack. The current build step adds

/// <reference types="node" />

which causes more errors, but Skypack replaces that line with

/* Stripped by CDN: <reference types="node" /> */

so I guess that helps.

I see two possible solutions, besides the big ES Module rewrite

  1. Move the node middleware exports to their own, dedicated packages
  2. Remove any imports from http. Either just use any, or create our own versions of IncomingMessage and ServerResponse that only implement what we need

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

I tested it with the @octokit/webhooks v9 beta release, and it worked

import { Webhooks } from "https://cdn.skypack.dev/@octokit/webhooks@9.0.0-beta.5?dts";

It will cause a worse developer experience for node users, but only for the onUnhandledRequest option (request and response are now both typed as any). I think it's a tradeoff I'm willing to do, until we have ES Modules. What do you think @wolfy1339?

@wolfy1339
Copy link
Member

That seems like a fair compromise

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

Okay I created two follow up issue for @octokit/app and @octokit/oauth-app

I hope that after these get resolved, this line will no longer fail with Deno

import { Octokit } from "https://cdn.skypack.dev/octokit?dts";

@gr2m
Copy link
Contributor

gr2m commented Apr 11, 2021

@zingi would you like to help out with the two issues I linked above? I have other priorities right now, but I can review PRs ;)

@zingi
Copy link
Author

zingi commented Apr 12, 2021

I would like to help out, but currently I don't have much spare time. 😕
Also this issue is not super high-priority for me, since I was only experimenting with deno.

If this issue still exists somewhere in the future, of the coming weeks or months I probably can try to help,
but I guess there are people who need this more urgent.

@zingi
Copy link
Author

zingi commented Apr 12, 2021

Buy hey, maybe @laughedelic could help a little 😁
He reacted with 👀 on the issue-description and has "Contributing to OSS projects in free time" in his github bio.

@laughedelic
Copy link

Haha 😆 you got me!

I really want to be able to use Octokit from Deno. Just today I had to switch to Node.js because of these issues and I suffered a lot from just setting up the project 😞

I'll try to take a look into this later this week, but I can't promise!

@gr2m
Copy link
Contributor

gr2m commented Apr 14, 2021

😁

The changes are pretty straight forward, I think. Here is the PR I did for @octokit/webhooks:
octokit/webhooks.js@662f35c

Basically the same changes need to be applied to the other repos. Don't get discouraged because you think it will take a lot of time, I don't think it will. And if you get stuck let me know and I'll try to help out

@laughedelic
Copy link

@gr2m
Copy link
Contributor

gr2m commented Apr 17, 2021

The latest versions resolved the problem with @octokit/app and @octokit/oauth-app. Thanks @laughedelic 👍🏼

The skypack CDN will take a moment to update the octokit module to point to point to @octokit/app@v12.0.2, can take up to an hour I've been told. Invalidating cache is hard :) In case it doesn't, please ping me, and I'll release a new version of octokit that bumps the @octokit/app dependency. It currently still loads https://cdn.skypack.dev/-/@octokit/app@v12.0.0-oEqr1ssJbQRuKYGBnfpG/dist=es2020,mode=imports/optimized/@octokit/app.js when I test it

@laughedelic
Copy link

Thanks! I just tried to run my Deno script with --reload and it still loads @octokit/app@v12.0.0 in the dependencies. If there is no way to force a cache update, could you release a new patch version?

@gr2m gr2m closed this as completed Apr 18, 2021
@github-actions
Copy link

🎉 This issue has been resolved in version 1.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gr2m
Copy link
Contributor

gr2m commented Apr 18, 2021

All right this code worked now:

import { App } from "https://cdn.skypack.dev/octokit?dts";

const app = new App({
  appId: "",
  privateKey: "",
});

app.log.warn("ok");

However, when I run it with deno run index.ts, the process hangs, something prevents it from exiting, do you see the same?

@gr2m gr2m transferred this issue from another repository Apr 18, 2021
@sant123
Copy link

sant123 commented Apr 18, 2021

Interesting, I just copied the code above and get these errors:

image

@laughedelic
Copy link

Same here

@laughedelic
Copy link

@gr2m I don't know if it's related, but I had a similar issue when I tried adding the throttling plugin to the octokit/core. If I run this script:

import { Octokit } from "https://cdn.skypack.dev/@octokit/core";
import { throttling } from "https://cdn.skypack.dev/@octokit/plugin-throttling";
const MyOctokit = Octokit.plugin(throttling);
const octokit = new MyOctokit({
  auth: Deno.env.get("GITHUB_TOKEN"),
  throttle: {
    onRateLimit: (retryAfter: any, options: any, octokit: any) => {
      return true;
    },
    onAbuseLimit: (retryAfter: any, options: any, octokit: any) => {
      octokit.log.warn(`Abuse detected for request ${options.method} ${options.url}`);
    },
  },
});

octokit.log.warn("foo");

It prints foo and hangs. If I remove everything related throttling, it prints the message and exits.

A workaround for this hanging is to add Deno.exit(0) at the end.

@zingi
Copy link
Author

zingi commented Apr 19, 2021

import { App } from "https://cdn.skypack.dev/octokit?dts";

const app = new App({
  appId: "",
  privateKey: "",
});

app.log.warn("ok");

Can it be, that it set ups some unintended webhooks by default and just waits?

@gr2m
Copy link
Contributor

gr2m commented Apr 19, 2021

no, it doesn't do anything like that. You have to call app.webhooks.receive() explicitly to receive an event. There should be no side effects in the constructor.

The same does not happen when I run the code in Node, so I'm curious if you know of any tricks on how to debug it in Deno?

@sant123
Copy link

sant123 commented Apr 20, 2021

@gr2m do you think this issue may be reopened?

@gr2m
Copy link
Contributor

gr2m commented Apr 20, 2021

I'd rather not reopen the issue, the original errors were addressed. But here is a follow up issue: #2079. I'd very much appreciate help with further narrowing down the problem. It's likely caused by bottleneck

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

I published octokit@1.0.3-debug.1. Can you check with this code?

import { App } from "https://cdn.skypack.dev/octokit@1.0.3-debug.1?dts";

const app = new App({
  appId: "",
  privateKey: "",
});

app.log.warn("ok");

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

@sant123 @laughedelic ☝🏼

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

I no longer see an error, but the process still hangs. Any idea how to debug it? Does Deno have a way to show a list of open sockets or whatever could keep a process from closing gracefully?

@sant123
Copy link

sant123 commented Apr 25, 2021

I think the key problem between the code octokit.d.ts and your fix is the version of @octokit/plugin-rest-endpoint-methods. It seems that deno gets 5.0.0, which had a typescript bug, it was resolved in 5.0.1.

Let me try trigger a new pre-release that will require 5.0.1 and see if that helps. The skypack folks say that the builds of dependants should get updated if one of their in-range dependencies has an update, but that doesn't work, at least not for the @octokit packages, so we have to explicitly do new releases for these cases for now

Well I took a look and was using 5.0.1 version of @octokit/plugin-rest-endpoint-methods when I did the tests. But the error disappears when we apply the fix I did

@sant123
Copy link

sant123 commented Apr 25, 2021

I published octokit@1.0.3-debug.1. Can you check with this code?

import { App } from "https://cdn.skypack.dev/octokit@1.0.3-debug.1?dts";

const app = new App({
  appId: "",
  privateKey: "",
});

app.log.warn("ok");

I just checked it and having the same 2 errors 😞

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

ugh me to, when I run it with --reload. How is this possible 😭

@sant123
Copy link

sant123 commented Apr 25, 2021

I no longer see an error, but the process still hangs. Any idea how to debug it? Does Deno have a way to show a list of open sockets or whatever could keep a process from closing gracefully?

I still can't debug it @gr2m, but this may help https://deno.land/manual/contributing/architecture#resources

@sant123
Copy link

sant123 commented Apr 25, 2021

ugh me to, when I run it with --reload. How is this possible sob

I checked with both run and cache commands with the --reload flag and getting the same issue 😕

@sant123
Copy link

sant123 commented Apr 25, 2021

Well, after some hours I figured out something curious and want to know WHY this happens:

This is the original error:
image

With this code in Visual Studio Code, press F12 in the import:
image

image

Now press F12 for "./octokit.d.ts"
image

To edit that code you need to open this file 41c8d1733b6c430f2629270b59ebf5b211d17bc5bbda3db924e216c84d535f75 in $HOME/.cache/deno/deps/https/cdn.skypack.dev

Copy this code and replace everything in the file with it:

import { Octokit as OctokitCore } from "/-/@octokit/core@v3.4.0-W4C5uhmyc4wSCIVwJnEX/dist=es2020,mode=types/index.d.ts";
export declare type SomeType = import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.1-JhiMRw570hyrJ3A8wvFD/dist=es2020,mode=types/dist-types/types.d.ts").Api;
export declare const Octokit: typeof OctokitCore & import("/-/@octokit/core@v3.4.0-W4C5uhmyc4wSCIVwJnEX/dist=es2020,mode=types/dist-types/types.d.ts").Constructor<void & {
    paginate: import("/-/@octokit/plugin-paginate-rest@v2.13.3-lPFWwUv4qPYxQ84z3Xin/dist=es2020,mode=types/index.d.ts").PaginateInterface;
} & SomeType>;
export declare type Octokit = InstanceType<typeof Octokit>;

Notice how we moved the type import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.1-JhiMRw570hyrJ3A8wvFD/dist=es2020,mode=types/dist-types/types.d.ts").Api into a type declaration.

Now run deno cache mod.ts

image

The first error is gone and maybe the same approach would be necessary for the second one, the question is why this happens? Is it something Deno Typescript cannot resolve under the hood?

@gr2m @laughedelic any ideas???

Thank you for reading this long comment.

@gr2m please try this, it may take sometime while you find the right file but once you have it, you can edit it in VSCode.

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

The problem I'm having now is that I don't get the error when I run deno cache mod.ts, I only get it when I run deno cache --reload mod.ts, so I cannot edit the cached files because they are not used 😭

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

nevermind, even with --reload the cached file seems to be used, the first error went away. I'm investigating why now

@gr2m
Copy link
Contributor

gr2m commented Apr 25, 2021

Okay I confirmed that the simple change from

import { Octokit as OctokitCore } from "/-/@octokit/core@v3.4.0-RitNLHu7nhRy0a2lxxr8/dist=es2020,mode=types/index.d.ts";
export declare const Octokit: typeof OctokitCore &
  import("/-/@octokit/core@v3.4.0-RitNLHu7nhRy0a2lxxr8/dist=es2020,mode=types/dist-types/types.d.ts").Constructor<
    void & {
      paginate: import("/-/@octokit/plugin-paginate-rest@v2.13.3-Kxl5gKAMfpguk13T9qFz/dist=es2020,mode=types/index.d.ts").PaginateInterface;
    } & import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.1-Glf9sGLzvmq9Gzy3HXLt/dist=es2020,mode=types/dist-types/types.d.ts").Api
  >;
export declare type Octokit = InstanceType<typeof Octokit>;

to using export declare type SomeType

import { Octokit as OctokitCore } from "/-/@octokit/core@v3.4.0-RitNLHu7nhRy0a2lxxr8/dist=es2020,mode=types/index.d.ts";
export declare type SomeType = import("/-/@octokit/plugin-rest-endpoint-methods@v5.0.1-Glf9sGLzvmq9Gzy3HXLt/dist=es2020,mode=types/dist-types/types.d.ts").Api;
export declare const Octokit: typeof OctokitCore &
  import("/-/@octokit/core@v3.4.0-RitNLHu7nhRy0a2lxxr8/dist=es2020,mode=types/dist-types/types.d.ts").Constructor<
    void & {
      paginate: import("/-/@octokit/plugin-paginate-rest@v2.13.3-Kxl5gKAMfpguk13T9qFz/dist=es2020,mode=types/index.d.ts").PaginateInterface;
    } & SomeType
  >;
export declare type Octokit = InstanceType<typeof Octokit>;

resolves the first issue. Unfortunately this is generated code, we do not have control over it. Also ... any idea why this is a problem?

@sant123
Copy link

sant123 commented Apr 25, 2021

Unfortunately I don't know @gr2m. However I tested the package with ts-node and works pretty good. That's why I said maybe is it a Deno Typescript bug?

@laughedelic
Copy link

Hi! thanks for pinging me. I'm watching your progress, but can't really help, I'm totally new to all this and have no idea how any of it works.

Could it be a Skypack bug? They generate this code, if I understand correctly. I tried using jspm:

import { App } from "https://jspm.dev/octokit@1.0.3-debug.1?dts";

const app = new App({
  appId: "",
  privateKey: "",
});

app.log.warn("ok");

And got a different error:

error: Uncaught SyntaxError: The requested module '/npm:universal-github-app-jwt@1!cjs' does not provide an export named 'default'
import _universalGithubAppJwt from '/npm:universal-github-app-jwt@1!cjs';
       ~~~~~~~~~~~~~~~~~~~~~~
    at <anonymous> (https://jspm.dev/npm:@octokit/auth-app@3.3.0!cjs:5:8)

This can probably be resolved with some modifications (exports?) in the package.json of that module, so I wonder if after that it will work 🤔 that would mean that jspm generates some other code that works.

@gr2m
Copy link
Contributor

gr2m commented Apr 26, 2021

This can probably be resolved with some modifications (exports?) in the package.json of that module

I am exploring a migration to native ES modules, but that is a bigger project. Unfortunately we are currently using @pika/pack for building all the @octokit modules. It was great at its time, but it's no longer maintained.

As an in-between step I'd be open to replace @pika/pack with another build setup which takes TypeScript code as input and spits out a directory with different builds, one with types, ideally two different ones for CJS,/ESM, and optionally one for browsers and deno, depending on necessity, and that sets the exports map in package.json accordingly.

@wperron
Copy link

wperron commented Apr 30, 2021

For those looking for a quick workaround to just get their code running, --no-check gets rid of the error messages

@sant123
Copy link

sant123 commented May 1, 2021

This can probably be resolved with some modifications (exports?) in the package.json of that module

I am exploring a migration to native ES modules, but that is a bigger project. Unfortunately we are currently using @pika/pack for building all the @octokit modules. It was great at its time, but it's no longer maintained.

As an in-between step I'd be open to replace @pika/pack with another build setup which takes TypeScript code as input and spits out a directory with different builds, one with types, ideally two different ones for CJS,/ESM, and optionally one for browsers and deno, depending on necessity, and that sets the exports map in package.json accordingly.

What about using Rollup for that? It supports ESM generation by default and CJS via plugin.

@gr2m
Copy link
Contributor

gr2m commented May 1, 2021

What about using Rollup for that

@pika/pack is using rollup. I'm open to suggestions to replace @pika/pack with our own build script that we use across all @octokit libraries. We have control over most of our dependencies, the ones that didn't move to ESM yet we can easily replace.

@wperron
Copy link

wperron commented May 2, 2021

If pika worked well, might be worth looking at https://github.com/snowpackjs/snowpack since it's the newer ESM bundler from the same folks. Skypack literally replaced the Pika cdn.

@gr2m
Copy link
Contributor

gr2m commented May 3, 2021

I know snowpack, I worked with them for a while :) It's a different scope, we need a build setup for universal packages, not a frontend build tool.

@CryogenicPlanet
Copy link

Any updates on this?

Still running into these errors while using export { Octokit, App } from "https://cdn.skypack.dev/octokit?dts"
image

@gr2m
Copy link
Contributor

gr2m commented Oct 24, 2021

We started work on https://github.com/octokit/octokit-next.js which, among other things, is all Native ESM so we hope it will work with Deno and other modern JavaScript Runtime Environments without a problem. However, work on Octokit is on hold right now I'm afraid: #620 (comment)

@Jolg42
Copy link

Jolg42 commented Feb 26, 2022

I also get the same issue here when using import { Octokit } from "https://cdn.skypack.dev/octokit?dts";

error: TS2694 [ERROR]: Namespace '__' has no exported member 'Api'.
} & import("/-/@octokit/plugin-rest-endpoint-methods@v5.13.0-qozG4mqmlmmkbkX9Donu/dist=es2019,mode=types/dist-types/types.d.ts").Api & {
                                                                                                                                 ~~~
    at https://cdn.skypack.dev/-/octokit@v1.7.1-1PoRQSXdCDkLMTIDPwfX/dist=es2019,mode=types/dist-types/octokit.d.ts:4:130

My workaround is to import it like this but I have no types available

import { Octokit } from "https://cdn.skypack.dev/@octokit/core";
const octokit = new Octokit({ auth: token });

But good news, I see that there is now a SDK team 👀

Hi everyone! 👋

I am excited to announce that GitHub is building a dedicated SDK team that will actively maintain all Octokit libraries (JS, Ruby, and .NET). The team’s mission will be to maintain, improve, and create Octokit libraries that will delight developers and improve GitHub’s ecosystem.

Our first role on the SDK team is now open and available here. If you’re interested, I’d love to chat with you!

#620 (comment)

@jpilkahn
Copy link

@wperron

For those looking for a quick workaround to just get their code running, --no-check gets rid of the error messages

-- no-check skips type checking of modules entirely. --no-check=remote should suffice as a workaround without completely disabling checking for deno run or deno bundle.

From deno run --help:

Skip type checking of modules.
If the value of '--no-check=remote' is supplied, diagnostic errors from remote
modules will be ignored.```

@Adidi
Copy link

Adidi commented Dec 12, 2022

In the latest Deno version you can import pacakges from npm so this:
import { App, Octokit } from "npm:octokit@^2.0.10";
is working correctly.

@michaelwooley
Copy link

michaelwooley commented Jan 19, 2023

Similar to @Adidi, I've found that the npm specifier appears to yield expected objects and types.[1]

However, worth pointing out that npm specifiers are only partially "stabilized." Note that:

  • Requires deno>=1.28
  • Will not work with deno bundle

The npm specifiers roadmap issue is: denoland/deno#15960

I think it would be helpful to add this alternative import (with a big asterisk *) in the readme. Happy to open the PR if this sounds reasonable.


[1] In general, skypack is acting rather odd for me. The search functionality in the web ui isn't working. The last blog post was in 2021. It looks like the relevant packages are up to date. But it seems like something might be off if they are sunsetting or similar?

@wolfy1339
Copy link
Member

Great to hear that things are working better with deno when using the npm specifiers!

PRs to update documentation are always welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

13 participants