[Vuejs]-TypeError: Cannot read property 'https' of undefined

0👍

Your require statement is wrong (you’ve mixed the import syntax with require):

const functions = require('firebase-functions');

0👍

I managed to check my files and finally fixed my error. I have a lib folder that stores the transpiled ts to js. And I just fixed it there. IT turned out that the functions object was not read in js.

Leave a comment