You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] I confirm this is a suspected bug or issue that will affect other users
I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[x ] I have read the documentation thoroughly and it does not help solve my issue.
[x ] I have checked that no similar issues (open or closed) already exist.
Current behavior:
Trying to remove the plugin: > cordova plugin rm cordova-plugin-firebasex --nosave returns the following error:
Cannot read properties of undefined (reading 'opts')
Expected behavior:
Plugin should cleanly be removed from project
Steps to reproduce:
Screenshots
Environment information
Cordova CLI version
cordova -v: 12.0
Cordova platform version
cordova platform lscordova-ios v7.1.1
Plugins & versions installed in project (including this plugin)
cordova plugin lsv18.0.5
Dev machine OS and version, e.g.
OSX Mac
sw_vers: Sanoma 14.6.1
Windows 10
winver
Runtime issue
Device details
-NA
OS details
NA
Android build issue: NA
iOS build issue:
Node JS version
node -v : 23.5.0
XCode version: 16.2
Related code:
The error is thrown on this firebasex script in ...cordova-plugin-firebasex/scripts/lib/utilities.js:
Utilities.getAppName = function(){
if(_context.opts.cordova.platforms.indexOf('ios') !== -1){ <---------
const projectRoot = _context.opts.projectRoot;
const platformPath = path.join(projectRoot, 'platforms', 'ios');
const cordova_ios = require('cordova-ios');
const iosProject = new cordova_ios('ios', platformPath);
return path.basename(iosProject.locations.xcodeCordovaProj);
}
// other platforms
return Utilities.parseConfigXml().widget.name._text.toString().trim();
};
Console output
cordova plugin rm cordova-plugin-firebasex --nosave --verbose
No scripts found for hook "before_plugin_rm".
Calling plugman.uninstall on plugin "cordova-plugin-firebasex" for platform "ios"
Finding scripts for "before_plugin_uninstall" hook from plugin cordova-plugin-firebasex on ios platform only.
Executing script found in plugin cordova-plugin-firebasex for hook "before_plugin_uninstall": plugins/cordova-plugin-firebasex/scripts/ios/before_plugin_uninstall.js
Cannot read properties of undefined (reading 'opts')
TypeError: Cannot read properties of undefined (reading 'opts')
at Utilities.getAppName (/Users/rpo/dev/myapp/plugins/cordova-plugin-firebasex/scripts/lib/utilities.js:68:17)
at Object.getXcodeProjectPath (/Users/rpo/dev/myapp/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:65:33)
at module.exports (/Users/rpo/dev/myapp/plugins/cordova-plugin-firebasex/scripts/ios/before_plugin_uninstall.js:6:35)
at runScriptViaModuleLoader (/Users/rpo/.nvm/versions/node/v23.5.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:159:32)
at runScript (/Users/rpo/.nvm/versions/node/v23.5.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:138:12)
at /Users/rpo/.nvm/versions/node/v23.5.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:110:40
Other information:
So far firebasex was working fine, but build times were taking for ever so I was trying to take advantage of the variable IOS_USE_PRECOMPILED_FIRESTORE_POD = true in the package.json setting. After that I attempted to remove/re-add the plugin to enable the new variable when I encountered the error. FirebaseX is so integrated I am nervous about manually trying to remove it.
The text was updated successfully, but these errors were encountered:
Bug report
CHECKLIST
[ x] I have read the issue reporting guidelines
[x ] I confirm this is a suspected bug or issue that will affect other users
Current behavior:
Trying to remove the plugin:
> cordova plugin rm cordova-plugin-firebasex --nosave
returns the following error:Cannot read properties of undefined (reading 'opts')
Expected behavior:
Plugin should cleanly be removed from project
Steps to reproduce:
Screenshots
Environment information
cordova -v
: 12.0cordova platform ls
cordova-ios v7.1.1cordova plugin ls
v18.0.5sw_vers
: Sanoma 14.6.1winver
Runtime issue
-NA
Android build issue: NA
iOS build issue:
node -v
: 23.5.0Related code:
Console output
Other information:
So far firebasex was working fine, but build times were taking for ever so I was trying to take advantage of the variable
IOS_USE_PRECOMPILED_FIRESTORE_POD = true
in the package.json setting. After that I attempted to remove/re-add the plugin to enable the new variable when I encountered the error. FirebaseX is so integrated I am nervous about manually trying to remove it.The text was updated successfully, but these errors were encountered: