Hey mkody, I'm getting the following error when trying to initialize the emote fetcher:
Uncaught TypeError: axios.get is not a function
at EmoteFetcher._getRawBTTVEmotes (EmoteFetcher.js:126:1)
at EmoteFetcher.fetchBTTVEmotes (EmoteFetcher.js:256:1)
at ApiUtils.createEmoteFetcher (ApiUtils.js:67:1)
at Main (Main.jsx:19:1)
at renderWithHooks (react-dom.development.js:15486:1)
at mountIndeterminateComponent (react-dom.development.js:20103:1)
at beginWork (react-dom.development.js:21626:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
This is how I'm trying to initialize the fetcher in my project:
// Returns an instance of the AppTokenAuthProvider class from @twurple/auth.
const authProvider = ApiUtils.getAuthProvider(CLIENT_ID, CLIENT_SECRET);
// Returns a new instance of the ApiClient class with the @twurple/auth authProvider.
const apiClient = ApiUtils.getApiClient(authProvider);
// Creates an instance of EmoteFetcher and fetches emotes using the example fetch options/sources.
const fetcher = ApiUtils.createEmoteFetcher(apiClient, CHANNEL_ID);
Thanks again, and let me know if you need anything else from my side!
Hey mkody, I'm getting the following error when trying to initialize the emote fetcher:
This is how I'm trying to initialize the fetcher in my project:
ApiUtils.js
Main.jsx
Thanks again, and let me know if you need anything else from my side!