Skip to content

TypeError: google[api.name] is not a function #17

@AliPST

Description

@AliPST

Hi,

I get an error ("TypeError: google[api.name] is not a function"), at this statement (exactly at line 123):
var api = decodeAPI(node.api); api = google[api.name]({ version: api.version, auth: auth });

It looks like the "google" variable does not get initialized as expected. I am saying that b/c "google.discovery('v1');" works fine (and it populates the api list and operation), but "google[api.name]" does not.
I even tried to change the code and statically call the api that I need (e.g. _google.dialogflow), but I got the same error.

Any idea?

Here are the environment settings and conditions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions