firebase云功能-部署错误找不到所需的模块

时间:2019-11-12 22:03:42

标签: javascript firebase google-cloud-functions

下面的错误,我之前曾问过一个类似/相同的问题,并且尝试了所有答案,但无济于事,一个错误:找不到模块'../key/socialapekey.json'部分涉及私钥,我有99%的人正确地引用了此密码,我非常困惑,希望对您有所帮助。

I am 99% I have reference this correctly

functions[createScream(us-central1)]: Deployment error.
Function failed on loading user code. Error message: 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 '../key/socialapekey.json'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/srv/index.js:8:39)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

0 个答案:

没有答案