Repository navigation
Error: Local Dev is not enabled for your org #326
Copy link
Copy link
Open
Description
Summary
Error: "Local Dev is not enabled for your org" when I run the sf lightning dev app command.
Steps To Reproduce:
- Enable in the org Local Dev from setup
- Check banner on top "Local Dev (Beta) is on.." is present
- 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:
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels



Activity
hgolov commentedon Feb 23, 2025
I'm also experiencing the same thing. Same screenshots, OS: Mac Please advise.
agamsharma-workday commentedon Mar 5, 2025
Did anyone find any fix for this ?
Svishnusundar commentedon Mar 11, 2025
I am also seeing the same error . any fix found ?
pierri1101 commentedon Mar 27, 2025
I run the code inside the folder: force-app/main/default, and works for me.
When I try for the first time, for some reason the toggle disable. After that I enabled again and run the code inside the folder.
I hope that information helps.
Ksharifp commentedon Apr 25, 2025
This code worked for me. Thank you
cverhaest commentedon Oct 16, 2025
Same issue. Did someone find a solution?