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, UNLESS the org has Lightning Web Security enabled. This may simply be a documentation issue, as I could not find this requirement documented.
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, UNLESS the org has Lightning Web Security enabled. This may simply be a documentation issue, as I could not find this requirement documented.Steps To Reproduce:
Expected Result
Changes are immediately visible.
Actual Result
Changes are never observed in the running page.
Additional Information
I originally reported this on the CLI repo as https://github.com/forcedotcom/cli/issues/3076. @mmablom responded with the idea to check LWS, which did fix my issue.
SF CLI:
using zsh on Mac OS 14.6.1