When initiating the local dev server with an LWR B2B Commerce site, 404 errors result in no operation
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- node.js, typescript
Research direction
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.
Written by the indexing model from the issue text.
Description
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
}
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 19
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from salesforcecli/plugin-lightning-dev
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
salesforcecli/plugin-lightning-dev#686 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
salesforcecli/plugin-lightning-dev#627 · 2 comments · 1 reaction ·
-
BUG P2
Difficulty 3/5 1-2 days Newbie friendliness 45/100
salesforcecli/plugin-lightning-dev#544 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
salesforcecli/plugin-lightning-dev#456 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in salesforcecli/plugin-lightning-dev
Similar issues
-
comp/dashboard P3 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·