Skip to content

When initiating the local dev server with an LWR B2B Commerce site, 404 errors result in no operation #410

@kmelessanakis

Description

@kmelessanakis

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:

  1. 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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions