forcedotcom / SalesforceMobileSDK-Package

BSD 3-Clause "New" or "Revised" License
22 stars 20 forks source link

ForceHybrid Create Issue With the Current Salesforce CLI #278

Closed rvkntraja closed 11 months ago

rvkntraja commented 1 year ago

The issue is with this SFDX CLI update: https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_move_to_sf_v2.htm

The Git Project needs an update the Constants file to match the correct version of the SFDX CLI From v6 to v2

Thanks image (1)

wmathurin commented 1 year ago

forcehybrid still depends on sfdx. Could you install sfdx instead of sf? We will switch to using sf in our next release.

akshayajeevan commented 1 year ago

@wmathurin - When are you planning to replace sfdx with sffor forcehybrid? We have updated the cli to sfand not able to upgrade our forcehybridapp.

wmathurin commented 1 year ago

Probably in 12.0 (early next year). #safeharbor

akshayajeevan commented 1 year ago

@wmathurin - I uninstall @salesforce/cli and installed sfdx-cli. But still I am getting below error for forcehybrid-

Missing tools

toolName is not defined

Also I tried uninstalling and installing forcehybridafter sfdx-cli Currently sfdx version command shows sfdx-cli/7.209.6 win32-x64 node-v16.14.0

We need the latest version of forcehybrid to update our android app urgently. Please help.

wmathurin commented 1 year ago

What happens if you do run sfdx --version from the command line?

akshayajeevan commented 1 year ago

@wmathurin Here is the output of sfdx --version and forcehybrid

>sfdx --version
sfdx-cli/7.209.6 win32-x64 node-v16.14.0

>forcehybrid
Missing tools

toolName is not defined
brandonpage commented 1 year ago

Hi @akshayajeevan, the only way I was able to reproduce the error you describe is with the new sf cli installed. You can try to run the following command to ensure that the old sfdx-cli is installed globally: sudo npm i -g sfdx-cli --force.

akshayajeevan commented 11 months ago

On my system installed cordova version is lower than the min version required. So this line in the if block is causing the error. The toolNameand toolVersion variables are not defined.

After updating the cordova version now its working.

wmathurin commented 11 months ago

Getting fixed with https://github.com/forcedotcom/SalesforceMobileSDK-Package/pull/283