Closed rmtuckerphx closed 5 years ago
Just checked and could reproduce the error. After looking into the cause I found that the issue is in the changes you made to the project.js
file. You are using backticks instead of single/double quotes. So your code says it should look for a variable which is called "JOVO_WEBHOOK_URL" and take its value but that variable does not exist. Because of that it then errors as it can not execute the file.
So if you chang the line:
endpoint: `${JOVO_WEBHOOK_URL}`
to:
endpoint: '${JOVO_WEBHOOK_URL}'
it should work fine.
Hope that helps!
To avoid such problems in the future (as I guess that will happen quite a lot) did I just commit some code which adds "JOVO_WEBHOOK_URL" temporary as a global variable when reading the project.js
. So with the next version of the CLI it will also work with backticks.
Thanks @janober! And sorry @rmtuckerphx, that one was on me, just noticed (and updated!) that in some tutorials we used backticks for the Jovo Webhook URL. Should be changed everywhere
Closing this now
I'm submitting a...
Expected Behavior
Executing
jovo build
when usingstages
anddefaultStage
should build for the default stage.Current Behavior
jovo new hello-jovo2
jovo build
project.js
to include stages:jovo build
again:jovo build --stage local
:Error log
The error is:
The "C:\dev\voice\shazaml\hello-jovo2\project.js" file is missing or invalid!
Your Environment