octokit.js: When trying to import in deno, a lot of missing dependency errors are thrown
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
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 62 (31 by maintainers)
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: https://github.com/octokit/octokit.js/discussions/620#discussioncomment-1472174
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.For those looking for a quick workaround to just get their code running,
--no-checkgets rid of the error messagesSame here
Interesting, I just copied the code above and get these errors:
@gr2m do you think this issue may be reopened?
@wperron
-- no-checkskips type checking of modules entirely.--no-check=remoteshould suffice as a workaround without completely disabling checking fordeno runordeno bundle.From
deno run --help: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.
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.
@pika/packis using rollup. I’m open to suggestions to replace@pika/packwith 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.nevermind, even with
--reloadthe cached file seems to be used, the first error went away. I’m investigating why now@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.
I just checked it and having the same 2 errors 😞
Well, after some hours I figured out something curious and want to know WHY this happens:
This is the original error:
With this code in Visual Studio Code, press F12 in the import:
Now press F12 for
"./octokit.d.ts"To edit that code you need to open this file
41c8d1733b6c430f2629270b59ebf5b211d17bc5bbda3db924e216c84d535f75in $HOME/.cache/deno/deps/https/cdn.skypack.devCopy this code and replace everything in the file with it:
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").Apiinto a type declaration.Now run
deno cache mod.tsThe 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.
Hmm ok 😌 I didn’t see these errors when I tested it the other day. Maybe it was caused by the upgrade to deno 1.9?
I feel like we are going circles, this might be a new error, or I don’t know what’s going on here. I’d appreciate help debugging this, I can’t really spent much time on it right now myself
@gr2m I think the original issue is still there for the
ApiandWebhooktypes: https://github.com/octokit/octokit.js/issues/2075#issuecomment-822032795.@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:
It prints
fooand hangs. If I remove everything relatedthrottling, it prints the message and exits.A workaround for this hanging is to add
Deno.exit(0)at the end.🎉 This issue has been resolved in version 1.0.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Thanks! I just tried to run my Deno script with
--reloadand it still loads@octokit/app@v12.0.0in the dependencies. If there is no way to force a cache update, could you release a new patch version?The latest versions resolved the problem with
@octokit/appand@octokit/oauth-app. Thanks @laughedelic 👍🏼The skypack CDN will take a moment to update the
octokitmodule 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 ofoctokitthat bumps the@octokit/appdependency. 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😁
The changes are pretty straight forward, I think. Here is the PR I did for
@octokit/webhooks: https://github.com/octokit/webhooks.js/commit/662f35c35ce7b747707eb44337b96d7f404fa21dBasically 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
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.
That seems like a fair compromise
index.ts
Errors
No Error
index.js
No Error
No Error