Error: "Local Development setup failed SfError: No published site found for: Test Local Dev"

Aperta
#351 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
cli

Direzione di ricerca

Start with the downloadSite call in expSite.js and the LightningDevSite.run entry point in site.js named by the stack trace. Reproduce the sf lightning dev site command against a sandbox with a published Build Your Own LWR site, then inspect how the site is located. Done means the command recognizes the published site and shows its local preview instead of reporting that no published site was found.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Error "Local Development setup failed SfError: No published site found for" when I try to run the sf lightning dev site command on my sandbox org.

Steps To Reproduce:
  1. Enable Local Dev on sandbox org.
  2. Create a new LWR site with the "Build Your Own (LWR)" template
  3. Publish the new site
  4. Run sf lightning dev site command
Expected Result

Should run the command and show the site preview.

Actual Result

Getting error "Local Development setup failed SfError: No published site found for".

Additional Information

Screenshots:

Image

Image

Image

Logs:

[config] peer dependency pwa-kit-runtime was not provided
[local-dev] initializing: Test Local Dev
Local Development setup failed SfError: No published site found for: Test Local Dev
    at ExperienceSite.downloadSite (file:///C:/Users/Admin/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/lib/shared/experience/expSite.js:189:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async LightningDevSite.run (file:///C:/Users/Admin/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/lib/commands/lightning/dev/site.js:47:27)
    at async LightningDevSite._run (C:\Users\Admin\AppData\Local\sf\node_modules\@salesforce\plugin-lightning-dev\node_modules\@oclif\core\lib\command.js:301:22)
    at async Config.runCommand (C:\Users\Admin\AppData\Local\sf\client\2.78.3-b3024dd\node_modules\@oclif\core\lib\config\config.js:456:25)
    at async run (C:\Users\Admin\AppData\Local\sf\client\2.78.3-b3024dd\node_modules\@oclif\core\lib\main.js:96:16)
    at async file:///C:/Users/Admin/AppData/Local/sf/client/2.78.3-b3024dd/bin/run.js:15:1 {
  actions: undefined,
  exitCode: 1,
  context: undefined,
  data: undefined,
  cause: undefined
}
System Information

SF CLI:

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.78.3",
  "nodeVersion": "node-v22.13.1",
  "osVersion": "Windows_NT 10.0.22631",
  "rootPath": "C:\\Users\\Admin\\AppData\\Local\\sf\\client\\2.78.3-b3024dd",
  "shell": "cmd.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.21 (core)",
    "@oclif/plugin-commands 4.1.20 (core)",
    "@oclif/plugin-help 6.2.25 (core)",
    "@oclif/plugin-not-found 3.2.40 (core)",
    "@oclif/plugin-plugins 5.4.32 (core)",
    "@oclif/plugin-search 1.2.21 (core)",
    "@oclif/plugin-update 4.6.31 (core)",
    "@oclif/plugin-version 2.2.23 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.33 (core)",
    "@oclif/plugin-which 3.2.29 (core)",
    "@salesforce/cli 2.78.3 (core)",
    "apex 3.6.8 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.94 (core)",
    "community 3.3.11 (user) published 21 days ago (Sat Feb 08 2025) (latest is 3.3.14)",
    "data 4.0.11 (core)",
    "deploy-retrieve 3.20.0 (core)",
    "info 3.4.39 (core)",
    "lightning-dev 1.10.0 (user) published 71 days ago (Fri Dec 20 2024)",
    "limits 3.3.46 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.2.32 (core)",
    "packaging 2.9.17 (core)",
    "schema 3.3.50 (core)",
    "settings 2.4.16 (core)",
    "sobject 1.4.50 (core)",
    "telemetry 3.6.33 (core)",
    "templates 56.3.38 (core)",
    "trust 3.7.65 (core)",
    "user 3.6.9 (core)"
  ]
}

OS: Windows 11

Lingua principale
TypeScript
Stelle
19
Fork
19
Merge medio
3g 12h
PR unite (30g)
2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di salesforcecli/plugin-lightning-dev

Tutte le issue di salesforcecli/plugin-lightning-dev

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.