After running a B4G CLI command from a version earlier than 2.7, the following error occurs:
Example:
zowe ebg co uc <Connection> --prot https --host <Bridge_host> --port <Bridge_port> --user <GitLab Service Account> --token <Git_token> --endevor-user <Endevor_user> --endevor-password <Endevor_password>
Error:
Contact the creator of handler:
"C:\Users\XXXX\XXXXXXXX\XXXX\node_modules\@broadcom\endevor-bridge-for-git-for-zowe-cli\lib\cli\endevor-connection\list/EndevorConnectionList.handler"
Message:
(0 , util_1.isNullOrUndefined) is not a function
Stack:
TypeError: (0 , util_1.isNullOrUndefined) is not a function
...
Versions of zowe B4G CLI plugin released before version 2.7.
This issue occurs due to version conflicts between Node.js and the B4G CLI plugin.
Newer versions of Node.js have removed (0 , util_1.isNullOrUndefined), which the B4G CLI plugin relies on in older versions.
There are two options:
1.Upgrade the B4G CLI plugin to version 2.7 or later :
You can do this using the following commands:
zowe plugins uninstall @broadcom/endevor-bridge-for-git-for-zowe-cli
zowe plugins install @broadcom/endevor-bridge-for-git-for-zowe-cli
More information can be found here: B4G CLI npm page.
2.Downgrade Node.js to a supported version
If upgrading the plugin is not feasible, use a Node.js version compatible with the plugin, e.g., v22.17.
Notes:
Always ensure that Zowe CLI and its plugins are compatible with your Node.js version to avoid runtime errors.
After upgrading or downgrading, rerun your B4G command to verify the issue is resolved.