TypeError: Cannot read properties of null (reading 'length'). #1194
              
                Unanswered
              
          
                  
                    
                      mouadessalim
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to setup a firebase function with authentification trigger, i've followed the documentation but nothing work, i am using v1 functions because authentification trigger is not yet supported for v2. Here is my code :
I am getting a
TypeError: Cannot read properties of null (reading 'length')in myfirebase-debug.logThe function seems to be packaged and uploaded successfully, but when creating the node.js function, it fails.
I am following this documentation : https://firebase.google.com/docs/functions/auth-events and this sample :
functions-samples/Node-1st-gen/quickstarts/email-users/functions/index.js
Line 45 in c4fde45
I've also tried multiple versions of
firebase-functionsandfirebase-admin, here is mypackage.json:{ "name": "functions", "description": "Cloud Functions for Firebase", "scripts": { "serve": "firebase emulators:start --only functions", "shell": "firebase functions:shell", "start": "npm run shell", "deploy": "firebase deploy --only functions", "logs": "firebase functions:log" }, "engines": { "node": "22" }, "main": "index.js", "dependencies": { "firebase-admin": "^13.2.0", "firebase-functions": "^6.3.2" }, "private": true }Beta Was this translation helpful? Give feedback.
All reactions