[Firebase Mobile] Build failed : Error installing cordova-plugin-firebase

Forge Component
(22)
Published on 26 May by Patrícia Glória Ferreira
22 votes
Published on 26 May by Patrícia Glória Ferreira

Hi David,

I have tried push notifications using Firebase Mobile. I have followed this documentation.

https://www.outsystems.com/forge/Component_Documentation.aspx?ProjectId=4991&ProjectName=firebase-mobile

Getting below error. -Build logs attached here

[2020-10-10T16:39:37.901Z] [error] No file found

[2020-10-10T16:39:37.901Z] [error] Failed to install 'cordova-plugin-firebase': TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

[2020-10-10T16:39:37.901Z] [error]     at validateString (internal/validators.js:112:11)

[2020-10-10T16:39:37.901Z] [error]     at Object.join (path.js:1040:7)

[2020-10-10T16:39:37.901Z] [error]     at module.exports (plugins/cordova-plugin-firebase/scripts/configurations/unzipAndCopyConfigurations.js:53:29)

[2020-10-10T16:39:37.901Z] [error]     at runScriptViaModuleLoader (.nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:18)

[2020-10-10T16:39:37.901Z] [error]     at runScript (.nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:164:16)

[2020-10-10T16:39:37.901Z] [error]     at .nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20

[2020-10-10T16:39:37.901Z] [error]     at _fulfilled (.nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/q/q.js:787:54)

[2020-10-10T16:39:37.901Z] [error]     at .nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/q/q.js:816:30

[2020-10-10T16:39:37.901Z] [error]     at Promise.promise.promiseDispatch (.nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/q/q.js:749:13)

[2020-10-10T16:39:37.901Z] [error]     at .nodenv/versions/12.10.0/lib/node_modules/cordova/node_modules/q/q.js:557:44

[2020-10-10T16:39:37.901Z] [error] Error: The "path" argument must be of type string. Received type undefined

[2020-10-10T16:39:37.901Z] [error] [Build] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-firebase.

[2020-10-10T16:39:37.902Z] [info] [Build] Zipping application source...

[2020-10-10T16:39:52.048Z] [info] [Build] Application was not successfully generated!

[2020-10-10T16:39:52.049Z] [info] [Build] Execution time: 134611ms


iOS and Android  build getting same error.


I have updated the FirebaseMobile extensibility Configurations also this git url. 

https://github.com/TruewindIT/cordova-plugin-firebase/tree/1.9



Please assist me on this issue.




oml file attached for your reference. Please check it 

Hi Rajesh Kumar,

I went through your attached OML & there are a couple of things that need to be corrected.

- Target Directory should be :

firebase.com.fintellabs.covex


- Extract your google-services.zip & it is not structured as per guidelines. There's an extra folder within.

I had corrected the OMl & attached the fixed version. Refer the same & let me know.

regards,
Assif