Error: Local Dev is not enabled for your org

Open
#326 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Start by reproducing sf lightning dev app -o {TargetOrg} against an org where Local Dev is enabled and the setup banner is visible. Trace the sf lightning dev app command in the lightning-dev plugin to compare its org check with the reported setting; done means the command proceeds and makes Preview Components available.

Written by the indexing model from the issue text.

Description

Summary

Error: "Local Dev is not enabled for your org" when I run the sf lightning dev app command.

Steps To Reproduce:
  1. Enable in the org Local Dev from setup
  2. Check banner on top "Local Dev (Beta) is on.." is present
  3. Run from terminal sf lightning dev app -o {TargetOrg}
Expected Result

Preview Components is available

Actual Result

Getting error Local Dev is not enabled for your org

Additional Information

Screenshots:

Image

Image

Image

SF CLI:

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.58.7",
  "nodeVersion": "node-v20.15.0",
  "osVersion": "Darwin 23.4.0",
  "rootPath": "/Users/raffaele.preziosi/.nvm/versions/node/v20.15.0/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.2 (core)",
    "@oclif/plugin-commands 4.0.13 (core)",
    "@oclif/plugin-help 6.2.10 (core)",
    "@oclif/plugin-not-found 3.2.18 (core)",
    "@oclif/plugin-plugins 5.4.6 (core)",
    "@oclif/plugin-search 1.2.7 (core)",
    "@oclif/plugin-update 4.5.5 (core)",
    "@oclif/plugin-version 2.2.11 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.13 (core)",
    "@oclif/plugin-which 3.2.12 (core)",
    "@salesforce/cli 2.58.7 (core)",
    "apex 3.4.8 (core)",
    "api 1.2.1 (core)",
    "auth 3.6.54 (core)",
    "data 3.6.5 (core)",
    "deploy-retrieve 3.12.3 (core)",
    "dev 2.3.1 (user) published 275 days ago (Thu May 02 2024) (latest is 2.5.1)",
    "devops-center 1.2.22 (user) published 153 days ago (Sun Sep 01 2024) (latest is 1.2.27)",
    "info 3.4.3 (core)",
    "lightning-dev 1.10.0 (user) published 43 days ago (Thu Dec 19 2024)",
    "limits 3.3.29 (core)",
    "marketplace 1.2.25 (core)",
    "org 4.5.7 (core)",
    "packaging 2.8.2 (core)",
    "schema 3.3.26 (core)",
    "settings 2.3.16 (core)",
    "sobject 1.4.33 (core)",
    "source 3.5.18 (core)",
    "telemetry 3.6.10 (core)",
    "templates 56.3.17 (core)",
    "trust 3.7.27 (core)",
    "user 3.5.29 (core)",
    "@salesforce/sfdx-scanner 4.5.0 (user) published 157 days ago (Tue Aug 27 2024) (latest is 4.9.0)",
    "lightning-flow-scanner 2.34.0 (user) published 160 days ago (Sun Aug 25 2024) (latest is 2.43.0)",
    "move-qcp 1.2.3 (user) published 523 days ago (Sun Aug 27 2023)",
    "sf-compare 1.0.4 (user) published 287 days ago (Sat Apr 20 2024)",
    "sf-dataops 1.0.0 (link) /Users/raffaele.preziosi/VsCode/sf-dataops",
    "sf-debug-log 0.1.2 (user) published 379 days ago (Thu Jan 18 2024)",
    "sf-perms 1.1.0 (user) published 238 days ago (Fri Jun 07 2024)",
    "sfdmu 4.36.3 (user) published 134 days ago (Thu Sep 19 2024) (latest is 4.38.0)"
  ]
}

OS: Mac

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.