'sf lightning dev' cannot start because the target org uses API version 68.0

Open Beginner friendly
#686 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli, devtools

Research direction

Start with the sf lightning dev component command and reproduce the failure against an API version 68.0 org. Trace the plugin's API-version validation, then verify that component preview starts successfully for API versions 66.0, 67.0, and 68.0.

Written by the indexing model from the issue text.

Description

Summary

sf lightning dev component cannot start because the target org uses API version 68.0, while the latest lightning-dev plugin (6.2.18) supports only API versions 66.0 and 67.0.

Steps To Reproduce:
  1. Install or update the latest Salesforce CLI and lightning-dev plugin.
  2. Authenticate to an org on API version 68.0.
  3. Run sf lightning dev component.
  4. Select an LWC component for preview.
Expected Result

Component preview starts successfully for an API 68.0 org.

Actual Result

The command fails with:

Error (1): Your org is on API Version 68.0. This version of the plugin supports only versions 66.0, 67.0. Please update your plugin.
Dominant language
TypeScript
Stars
19
Forks
19
Avg merge
3d 12h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforcecli/plugin-lightning-dev

All issues in salesforcecli/plugin-lightning-dev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.