What am I doing?
I am using Vite for my React app. I'm importing Octokit and binding it like this:
import { Octokit } from "octokit";
const githubToken = import.meta.env.REACT_APP_GITHUB_TOKEN;
const octokit = new Octokit({auth: githubToken});
I expect this to function normally. As in, I expect to make requests using octokit
perfectly fine.
What am I experiencing?
- https://github.com/vitejs/vite/issues/5963. An issue akin to this.
Or at least, it starts with this: Module "stream" has been externalized for browser compatibility and cannot be accessed in client code.