Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep API Version Up to Date #29

Open
ralphcallaway opened this issue Apr 24, 2020 · 3 comments · May be fixed by #50
Open

Keep API Version Up to Date #29

ralphcallaway opened this issue Apr 24, 2020 · 3 comments · May be fixed by #50
Assignees

Comments

@ralphcallaway
Copy link
Collaborator

Upgraded to the latest and got this error
Entity type 'LightningComponentBundle' is not available in this api version

Per this forum the culprit is the sourceApiVersion in sfdx-project.json

Would be nice to add an update to keep that api version current with each upgrade. Could be other options like a pre-commit hook to check things are up to the latest version. Would be nice not to have to release a new generator version 3 times a year to bump api versions. Got to be something better we could do or some way to get the latest released version of the salesforce api.

@ralphcallaway
Copy link
Collaborator Author

maybe a pre-commit hook that checks the api version is current every so often against the rest api? could also have a npm script to update the key spots if it doesn't make sense to re-run the generator, see https://salesforce.stackexchange.com/a/116651/594

@ralphcallaway
Copy link
Collaborator Author

other version reference is in manifest/package.xml but not sure if that one even does anything, seems like the sfdx stuff overrides it now

@ChuckJonas
Copy link
Collaborator

ChuckJonas commented Apr 24, 2020

ya a commit hook seems like the way to go... Maybe with a short timeout to prevent it from hanging.

Could create a very simple sfdx:plugin to do this

sfdx project:update:version or something like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants