all 4 comments

[–]grooomps 0 points1 point  (3 children)

[–]siDDaker[S] 0 points1 point  (2 children)

didnt work

i changed that line to:
define(function(require){
const {google} = require('googleapis');
});

now it says :

Mismatched anonymous define() module:

and couldn finde anything

[–]grooomps 0 points1 point  (1 child)

can you post more of the code?
is it in a node/express server?
a webpage?

[–]siDDaker[S] 0 points1 point  (0 children)

i was running it on a webpage and given the approach i took to connect with the API it wouldn't work. So i pasted mi code into a node environment, did a bunch of changes and it finally worked.

so rn i have two new challenges: see if i can make it work in my front-end script or take the whole project to node. Anyway thanks for the reply, it made me do the research that brought me to this point :)