My experience with setting up a Google Cloud Function using Typescript involved encountering an initial error message:
Function failed on loading user code. Error message: Provided code is not a loadable module. Could not load the function, shutting down.
After checking my package.json file, I noticed that the main property was specified as "./build/app.js"