Dev Server continuously hot-reloads if js files are imported form subfolder
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, node.js, typescript
Rechercherichtung
Start with the sf lightning dev component --name sample entry point and reproduce the watcher loop using a Lightning web component that imports a JavaScript file from a subfolder. Compare the change-detected events with the generated local code and determine why the server reloads repeatedly. Done means the component loads local code once without a continuous reload cycle; add or run the relevant watcher test if one is found.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
I have a lightning web component and use sf lightning dev as local dev server.
I split the js code of the web component into multiple files are try to organize them in folders
when I do this, the dev server starts but gets a 'change detected' signal about each second
The lighting compiler that is used when 'deploy'ing and the one producing the code works as expected
Steps To Reproduce:
- Create an lwc
- factor out code from the main js file , move it into a subfolder and import it from there
- start the dev server and look at the console output
Expected Result
The component should be loaded from backend, then one-time replaced by the local code and displayed
Actual Result
the component loads form the backend, but then a reload cycle of the local code occurs around each second
Additional Information
Screenshots:
see above
Logs:
see screenshot. I could produce debug logs if needed. Would be nice to know how to set DEBUG to a value other than '*' to limit the output to the really necessary (e.g. excluding babel output)
System Information
SF CLI:
sf lightning dev component --name sample
sf --version
@salesforce/cli/2.109.6 win32-x64 node-v22.19.0
sf plugins
code-analyzer 5.5.0
lightning-dev 4.5.2
Uninstalled JIT Plugins:
community 3.3.41
custom-metadata 3.3.68
dev 2.5.1
devops-center 1.2.27
flow 1.0.2
signups 2.6.49
@salesforce/sfdx-plugin-lwc-test 1.2.1
OS:
Windows
- Vorherrschende Sprache
- TypeScript
- Sterne
- 20
- Forks
- 19
- Ø Merge
- 17 Std. 48 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus salesforcecli/plugin-lightning-dev
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
salesforcecli/plugin-lightning-dev#686 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
salesforcecli/plugin-lightning-dev#627 · 2 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
salesforcecli/plugin-lightning-dev#456 · 1 Reaktion ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
salesforcecli/plugin-lightning-dev#428 · 2 Reaktionen ·
Alle Issues in salesforcecli/plugin-lightning-dev
Ähnliche Issues
-
area:ui effort:S enhancement priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
QuantumNous/new-api#7839 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
dark-princezz/stellar-hooks#1010 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
interledger/rhyza#352 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag