Skip to content

Unable to import octokit.js from CDN 🙀 #22

@artkirienko

Description

@artkirienko

Line of code

import { Octokit, App } from "https://cdn.skypack.dev/octokit";

Erros

[Warning] [Package Error] "lru-cache@v9.1.1" could not be built. (Imported by "@octokit/auth-app"). (build:lru-cache@v9.1.1-t7cOEoLX2RvAxMKlhTnV, line 19)
[1/5] Verifying package is valid…
[2/5] Installing dependencies from npm…
[3/5] Building package using esinstall…
Running esinstall...
Failed to load node_modules/lru-cache/dist/mjs/index.js
  Unexpected token (406:4) in lru-cache/dist/mjs/index.js
Install failed.
Install failed.
[Error] Error: [Package Error] "lru-cache@v9.1.1" could not be built. (Imported by "@octokit/auth-app").

	Module Code (build:lru-cache@v9.1.1-t7cOEoLX2RvAxMKlhTnV:20:114)

Issue

octokit/octokit.js#2450

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions