Error - function-js-does-not-exist-when-deploying-cloud-function

Issue - function-js-does-not-exist-when-deploying-a-cloud-function

function-js-does-not-exist-when-deploying-a-cloud-function in Qwik Start - Command Line lab

This error mostly occurred while doing Cloud Functions: Qwik Start - Command Line | GSP080 lab

Solution

When you copy the command for nano index.js, please be careful. After pressing Ctrl+X, then Y, and finally the Enter key, it should work. Don't forget to press Enter to exit from the nano window. This way, the .js file will be saved, and errors won't occur.

If You are facing this error, it means your index.js file is not saved properly.