Category : svelte-3

I’m having an issue when trying to implement the Youtube data API in my Svelte app. Whenever the site is loaded it just spits the following error: Uncaught ReferenceError: gapi is not defined The relevant code currently looks as follows: <svelte:head> <script src="https://apis.google.com/js/api.js"></script> </svelte:head> <script> function start() { console.log(GAPIKEY); // 2. Initialize the JavaScript client ..

Read more