Skip to content

Edits not reflected in Local Dev server #3076

@jclark-dot-org

Description

@jclark-dot-org

Summary

While running a dev sever with sf lightning dev app, the server starts and the page loads in my browser, but edits to local LWC html files are not reflected in the running page.

Steps To Reproduce

I'm trying to work with a lightning__RecordPage-targeted LWC while is present on my Opportunity Lightning page. These are the steps I followed:

  1. Install CLI and Local Dev plugin
  2. Enable Local Dev in sandbox
  3. Run the dev server: sf lightning dev app -n LightningSales
  4. Navigate to Opportunities tab (present in the LightningSales app), click an opportunity, select the tab within the page where my LWC is placed.
  5. Make simple edits to the LWC HTML file, such as changing the title attribute of a lightning-card element.

Expected result

Edits should be seen in the running page.

Actual result

No changes are reflected in the running page.

Additional information

The plugin runs with no errors, and no command line output when files are modified (no idea if that is expected). It opens the app in the browser using an url that appears to include local dev server info, e.g.,

https://orgname--full.sandbox.lightning.force.com/lightning/r/Opportunity/006WC000007PagzYAC/view?0.aura.ldpServerUrl=ws%3A%2F%2Flocalhost%3A8081&0.aura.ldpServerId=1I9WC0000000BZl0AM&0.aura.mode=DEVPREVIEW

I tried a full uninstall/reinstall of the plugin and the CLI, with no luck.

System Information

using zsh on Mac OS 14.6.1

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.62.6",
  "nodeVersion": "node-v20.17.0",
  "osVersion": "Darwin 23.6.0",
  "rootPath": "/Users/jclark/.nvm/versions/node/v20.17.0/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.5 (core)",
    "@oclif/plugin-commands 4.1.3 (core)",
    "@oclif/plugin-help 6.2.14 (core)",
    "@oclif/plugin-not-found 3.2.22 (core)",
    "@oclif/plugin-plugins 5.4.14 (core)",
    "@oclif/plugin-search 1.2.11 (core)",
    "@oclif/plugin-update 4.6.3 (core)",
    "@oclif/plugin-version 2.2.14 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.18 (core)",
    "@oclif/plugin-which 3.2.15 (core)",
    "@salesforce/cli 2.62.6 (core)",
    "apex 3.5.1 (core)",
    "api 1.3.1 (core)",
    "auth 3.6.65 (core)",
    "data 3.7.0 (core)",
    "deploy-retrieve 3.12.17 (core)",
    "info 3.4.9 (core)",
    "lightning-dev 1.9.0 (user) published 10 days ago (Fri Oct 11 2024)",
    "limits 3.3.32 (core)",
    "marketplace 1.2.26 (core)",
    "org 4.6.0 (core)",
    "packaging 2.8.11 (core)",
    "schema 3.3.34 (core)",
    "settings 2.3.23 (core)",
    "sobject 1.4.41 (core)",
    "source 3.5.21 (core)",
    "telemetry 3.6.15 (core)",
    "templates 56.3.22 (core)",
    "trust 3.7.33 (core)",
    "user 3.5.32 (core)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions