rozdoum / social-app-android

Build your social app for Android with the code template that includes the following key features for social networks as likes, comments, posts, image uploads, etc.
Apache License 2.0
450 stars 266 forks source link

Error: Error occurred while parsing your function triggers. #108

Open caduguedess opened 4 years ago

caduguedess commented 4 years ago

I'm following the README steps but when I try to deploy functions I get this error.

Error: Error occurred while parsing your function triggers.

TypeError: require(...) is not a function
    at Object.<anonymous> (C:\Users\cadug\AndroidStudioProjects\social-app-android-master\functions\index.js:25:45)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at C:\Users\cadug\AppData\Roaming\npm\node_modules\firebase-tools\lib\triggerParser.js:15:15
    at Object.<anonymous> (C:\Users\cadug\AppData\Roaming\npm\node_modules\firebase-tools\lib\triggerParser.js:53:3)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)