Skip to content

[TypeScript] @octokit/rest v18.0.5 -> v18.0.6 upgrade breaks usage of Octokit with @actions/github` #1872

Answered by gr2m
myyk asked this question in Q&A
Discussion options

You must be logged in to vote

The problem seems to be a conflict between @octokit/types@5.5.0 and @octokit/types@5.4.1, both versions are present in the dependency tree, see https://github.com/octokit/rest.js/discussions/#discussioncomment-79071

What resolved the problem for me is to update the lock file

rm -rf package-lock.json node_modules
npm install

After that, the build succeeds.

I wonder, why do you have both @actions/github and @octokit/rest in your dependencies? It should not be necessary. If you didn't, the problem would not have occurred.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gr2m
Comment options

@gr2m
Comment options

@gr2m
Comment options

Comment options

You must be logged in to vote
1 reply
@myyk
Comment options

Answer selected by myyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants