You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constyouApiKey="< I'm not going to show my key >";const{ YoutubedataAPI }=require("youtube-v3-api");constyouApi=newYoutubedataAPI(youApiKey);
When ran, this error occurs:
C:\Users\Talon\Documents\Jarvis\bot.js:19
const youApi = new YoutubedataAPI(youApiKey);
^
TypeError: YoutubedataAPI is not a constructor
at Object.<anonymous> (C:\Users\Talon\Documents\Jarvis\bot.js:19:16)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11
I have no idea why this is happening. Please, help me.
The text was updated successfully, but these errors were encountered:
This is my code:
When ran, this error occurs:
I have no idea why this is happening. Please, help me.
The text was updated successfully, but these errors were encountered: