When initiating the local dev server with an LWR B2B Commerce site, 404 errors result in no operation
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 32/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
Direzione di ricerca
Start by reproducing the issue with sf lightning dev site -l using the reported Salesforce CLI and lightning-dev versions. Trace the lwr/navigationContext resolution and the static-bundle-provider failures shown in the module-registry stack; done means the B2B Commerce site renders without the reported 404 or missing static-bundle errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When the local dev server starts the site doesnt load. The site is a b2b commerce lwr site with many lwcs running in tandem
Steps To Reproduce:
- Run sf lightning dev site -l
Expected Result
The site to render
Actual Result
- Getting an error of
404: Could not find module with specifier "lwr/navigationContext" - The console output beeing the following
{
message: '{"message":"Failed to find static bundle","moduleId":{"specifier":"c/sfSvgStore"},"localeId":"en-US","debug":true,"siteBundleId":"c/sfSvgStore|l/en-US","debugBundles":[],"runtimeBundles":[],"totalBundlesCount":341,"totalDebugBundlesCount":341}',
label: 'static-bundle-provider'
}
[error] {"message":"Failed to find static bundle","moduleId":{"specifier":"c/sfFooter"},"localeId":"en-US","debug":true,"siteBundleId":"c/sfFooter|l/en-US","debugBundles":[],"runtimeBundles":[],"totalBundlesCount":341,"totalDebugBundlesCount":341}
{
message: '{"message":"Failed to find static bundle","moduleId":{"specifier":"c/sfFooter"},"localeId":"en-US","debug":true,"siteBundleId":"c/sfFooter|l/en-US","debugBundles":[],"runtimeBundles":[],"totalBundlesCount":341,"totalDebugBundlesCount":341}',
label: 'static-bundle-provider'
}
[error] {"message":"Failed to find static bundle","moduleId":{"specifier":"c/sfHeader"},"localeId":"en-US","debug":true,"siteBundleId":"c/sfHeader|l/en-US","debugBundles":[],"runtimeBundles":[],"totalBundlesCount":341,"totalDebugBundlesCount":341}
{
message: '{"message":"Failed to find static bundle","moduleId":{"specifier":"c/sfHeader"},"localeId":"en-US","debug":true,"siteBundleId":"c/sfHeader|l/en-US","debugBundles":[],"runtimeBundles":[],"totalBundlesCount":341,"totalDebugBundlesCount":341}',
label: 'static-bundle-provider'
}
[error] 404: Could not find module with specifier "lwr/navigationContext"
LwrUnresolvableError: 404: Could not find module with specifier "lwr/navigationContext"
at LwrModuleRegistry.delegateGetModuleOnProviders (file:///Users/XXXXXXX/.local/share/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/module-registry/build/es/index.js:276:15)
at async LwrModuleRegistry.createModuleDefinition (file:///Users/XXXXXXX/.local/share/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/module-registry/build/es/index.js:132:32)
at async file:///Users/XXXXXXX/.local/share/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/module-registry/build/es/index.js:124:31 {
type: 'module'
}
Additional Information
Screenshots:
Logs:
System Information
SF CLI:
@salesforce/cli/2.89.8 darwin-arm64 node-v23.8.0
lightning-dev 3.3.1 (3.3.1)
Experience Sites Only:
{
"orgId": "00D1w0000000VRh",
"siteId": "0DM2o0000008zbM",
"clwrVersion": "256.117",
"coreVersion": "256.7",
"coreChangelist": "53425758",
"bundleGenerationDate": "Jun 2, 2025 11:27:56 AM",
"siteTemplateName": "b2b-storefront",
"deployTarget": "CORE",
"isSsrCodeTypeEnabled": false
}
- Lingua principale
- TypeScript
- Stelle
- 19
- Fork
- 19
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di salesforcecli/plugin-lightning-dev
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
salesforcecli/plugin-lightning-dev#686 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
salesforcecli/plugin-lightning-dev#627 · 2 commenti · 1 reazione ·
-
BUG P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
salesforcecli/plugin-lightning-dev#544 · 4 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
salesforcecli/plugin-lightning-dev#456 · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di salesforcecli/plugin-lightning-dev
Issue simili
-
level/task reporter/qa type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
wazuh/wazuh-dashboard-plugins#9310 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cybersemics/treecrdt#267 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
wiz-sec-public/backstage-plugin-wiz#16 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
solana-foundation/solana-com#2245 ·
I maintainer di solito rispondono entro 1 giorno