"Some functions failed to load" error message in the Firebase CF dashboard

147 views
Skip to first unread message

Filippo Passante

unread,
Apr 19, 2024, 6:54:42 PM4/19/24
to Firebase Google Group
The following typescript function deploys successfully according to the Firebase CLI but not according to the dashboard.

```typescript
import * as functions from 'firebase-functions';

export const helloWorld = functions.https.onRequest((request, response) => {
  response.send("hello world");
});
```

Here is my console log:

```
filippo@MacBook-Air-di-Filippo Cloud Functions % firebase deploy --only functions

=== Deploying to 'my-project-00000'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> lint
> eslint --ext .js,.ts .

Running command: npm --prefix "$RESOURCE_DIR" run build

> build
> tsc

✔  functions: Finished running predeploy script.
i  functions: preparing codebase default for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
✔  artifactregistry: required API artifactregistry.googleapis.com is enabled
✔  functions: required API cloudbuild.googleapis.com is enabled
✔  functions: required API cloudfunctions.googleapis.com is enabled
i  functions: Loading and analyzing source code for codebase default to determine what to deploy
Serving at port 8313

i  functions: cleaning up build files...

✔  Deploy complete!
```

Screenshot 2024-04-19 alle 19.30.23.png

I have mostly followed these tutorials: https://youtu.be/2u6Zb36OQjM?si=qxZd8G2hyIFYNRjq, https://firebase.google.com/docs/functions/get-started?gen=2nd.

Admittedly, my typescript code could be the problem.

**Environment**
Visual Studio Code 1.88.1
Node 20.12.0
ESLint 9.0.0
Firebase CLI 13.7.3
Safari 17.4.1 (macOS 14.4.1) but also Chrome 122.0.6261.94
MacBook Air M1 8GB
Reply all
Reply to author
Forward
0 new messages