Cannot set property 'createOrUpdateFiles' of undefined
danpetitt opened this issue · 1 comments
danpetitt commented
I seem to be getting the following error:
Cannot set property 'createOrUpdateFiles' of undefined
When using this project using the following code example:
import { Octokit } from '@octokit/core';
const OctokitPlugin = Octokit.plugin(
require('octokit-commit-multiple-files'),
);
// The following gives the error
const octokitPlugin = new OctokitPlugin({ auth: `token ${token}` });
What am I doing wrong here?
danpetitt commented
Ignore this, the problem was because I was importing @octokit/core
instead of @octokit/rest