Trouble deploying functions...

349 views
Skip to first unread message

Peter Murray

unread,
Oct 19, 2017, 12:14:53 AM10/19/17
to Firebase Google Group
I'm having difficulties deploying my functions tonight - this is a new project and I can't tell if it's something wrong with firebase functions deployment service or what...  I've reduced it down to the following recipe:

Using Node v6.11.4

firebase init functions

Once that completes, edit the index.js and uncomment the 'helloWorld' example function.

Then 'firebase deploy --only functions'

I end up getting:

=== Deploying to '<project-id>'...


i  deploying functions

i  functions: ensuring necessary APIs are enabled...

i  runtimeconfig: ensuring necessary APIs are enabled...

  runtimeconfig: all necessary APIs are enabled

  functions: all necessary APIs are enabled

i  functions: preparing functions directory for uploading...

i  functions: packaged functions (865 B) for uploading

  functions: functions folder uploaded successfully

i  starting release process (may take several minutes)...

i  functions: updating function helloWorld...

  functions[helloWorld]: Deploy Error: Function load error: Code in file index.js can't be loaded.

Did you list all required modules in the package.json dependencies?

Detailed stack trace: Error: Cannot find module 'firebase-admin'

    at Function.Module._resolveFilename (module.js:469:15)

    at Function.Module._load (module.js:417:25)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (/user_code/node_modules/firebase-functions/lib/apps.js:25:18)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)


Anybody else seeing this?

-pete 

Saad Zafar

unread,
Oct 19, 2017, 1:16:23 AM10/19/17
to Firebase Google Group
Google has issued a workaround while they fix the problem
https://status.firebase.google.com/incident/Functions/17024
Reply all
Reply to author
Forward
0 new messages