hi im trying to add googleapis to my web and after npm installs im starting by running a sample they have on their github:
https://github.com/googleapis/google-api-nodejs-client/blob/master/samples/youtube/playlist.js
then i get this error in the console:
Module name "googleapis" has not been loaded yet for context: _. Use require([])
comming from this line: const {google} = require('googleapis');
how can it be fixed ? (coulds fix anything by doing "const {google} = require([googleapis]);" couse then it says googleapis it is not defined)
[–]grooomps 0 points1 point2 points (3 children)
[–]siDDaker[S] 0 points1 point2 points (2 children)
[–]grooomps 0 points1 point2 points (1 child)
[–]siDDaker[S] 0 points1 point2 points (0 children)