I use the octokit to authenticate my users and then retrieve files from a repo. It was working up to Saturday. Now I am getting the error below:
[Package Error] "@octokit/core@v5.0.0" could not be built. (Imported by "@octokit/rest").
[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/@octokit/core/dist-web/index.js
Unexpected token (13:9) in @octokit/core/dist-web/index.js
Install failed.
Install failed.
[Package Error] "@octokit/core@v5.0.0" could not be built. (Imported by "@octokit/rest").
[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/@octokit/core/dist-web/index.js
Unexpected token (13:9) in @octokit/core/dist-web/index.js
Install failed.
Install failed.
Code of Conduct
[X] I agree to follow this project's Code of Conduct
What happened?
I use the octokit to authenticate my users and then retrieve files from a repo. It was working up to Saturday. Now I am getting the error below:
[Package Error] "@octokit/core@v5.0.0" could not be built. (Imported by "@octokit/rest"). [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/@octokit/core/dist-web/index.js Unexpected token (13:9) in @octokit/core/dist-web/index.js Install failed. Install failed.
Versions
Octokit.js v.19
import { Octokit } from "https://cdn.skypack.dev/@octokit/rest";
Relevant log output
Code of Conduct