Error occurred while passing your function triggers. Reference Error: Client Id is not defined

Error occurred while passing your function triggers. Reference Error: Client Id is not defined

我的客户 ID 出现引用错误。

代码:

const app = dialogflow( {
     clientId : XXXXXXXXXXX-XXXXXXXXXXXX1.apps.googleusercontent.com,
     debug : true,
    });

error

尝试在您的客户 ID 周围添加引号。该错误告诉您未定义变量,因此很可能它正在尝试查找与您的客户端 ID 同名的变量,因为您尚未将其定义为字符串。

clientId : "XXXXXXXXXXX-XXXXXXXXXXXX1.apps.googleusercontent.com",