In CLI terminal,
sfdx force --version
and sfdx plugins
revealed to me that even if my VSCode extensions are v44, and my CLI version is sfdx-cli/6.44.0-dead729fb5 (windows-x64) node-v8.9.4
... well, apparently sfdx itself (which I thought was an abstraction) has a version #, and it was 45.
Solution is to manually override the API version used by your project
After moving into a project folder, specify a version override with the following command:sfdx force:config:set apiVersion=44.0 This will allow you to use the newer 45.0 features in a LWC project, whilst still being able to work in a 44.0 org without any errors.Make sure that, if you're playing with an advanced version of the API, that you keep the salesforcedx@pre-release plugin installed until it is upgraded to the latest release.
No comments:
Post a Comment