简体   繁体   English

Google助手-部署第一个应用程序时出错

[英]Google assistant - error when deploy first app

I am trying to deploy my first Actions on Google app. 我正在尝试在Google应用程序上部署我的第一个操作。 I'm using Dialogflow and Firebase Functions and deploying it using this command: 我正在使用Dialogflow和Firebase函数,并使用以下命令进行部署:

firebase deploy --only functions

But I'm getting the following messages and error: 但是我收到以下消息和错误:

=== Deploying to 'sillynamemaker-2369c'...

i  deploying functions i  functions: ensuring necessary APIs are enabled... i  runtimeconfig: ensuring necessary APIs are enabled... ✔  runtimeconfig: all necessary APIs are enabled ✔  functions: all necessary APIs are enabled i  functions: preparing functions directory for uploading...

Error: Error occurred while parsing your function triggers.

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/tmp/fbfn_8461HDxPA7uUADKA/index.js:4:13)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

Have you edited any of the .js files? 您是否编辑了任何.js文件? This error strongly suggests that it is trying to parse a JavaScript file, but you have a syntax error in something you entered. 该错误强烈表明它正在尝试解析JavaScript文件,但是在输入的内容中存在语法错误。

If you type node index.js you may get a better idea where the syntax error is. 如果键入node index.js ,可能会更好地了解语法错误在哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM