-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when authenticating user with token #2340
Comments
This is most likely a problem with webpack bundling, I think there were a few issues in the past about it. |
Hi, I'm VERY new to react native... I'm not even sure I know what a web pack is. Could you maybe walk me a bit through it? |
Unfortunately I don't have experience with React Native either. Webpack is used to bundle the code from I'm sorry I can't help better. I'm sure other folks used Octokit with React Native in the past, maybe look for open source projects for reference? You can also try and use |
@gr2m Thanks, I will try using @octokit/core EDIT: Thank you! It worked like a charm!!! |
Please avoid duplicates
Reproducible test case
Not sure
Please select the environment(s) that are relevant to your bug report
Version
octokit version: 2.0.10
imported:
import { Octokit, App } from "octokit";
What happened?
I'm trying to use Octokit with react native, so I installed it, this step goes well, then imported, this one too goes well, but when running
const octokit = new Octokit({ auth: token });
It errors and says:What could be the problem?
(NodeJS version: 18.8.0)
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: