Hi, Have anyone tried the feature: Preview a single Lightning web component using Local Dev (Beta) , which was mentioned in Summer 25 Release. I'm getting the following error, when I run 'sf lightning dev component' command. [error] 404: Could not find asset at "%5Cassets%5Cslds%5Cstyles%5Csalesforce-lightning-design-system.min.css" LwrUnresolvableError: 404: Could not find asset at "%5Cassets%5Cslds%5Cstyles%5Csalesforce-lightning-design-system.min.css" at LwrAssetRegistry.delegateGetAsset (file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/asset-registry/build/es/index.js:27:15) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async LwrAssetRegistry.getAsset (file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/asset-registry/build/es/index.js:42:26) at async LwrAssetRegistry.resolveAssetUri (file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/asset-registry/build/es/index.js:164:26) at async file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/core/build/es/middleware/asset-middleware.js:41:30 at async file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/core/build/es/middleware/utils/error-handling.js:56:13 at async file:///C:/Users/CA/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/node_modules/@lwrjs/server/build/es/express/express-server.js:58:13 { type: 'asset' }
I found where the issue came from. plugin-lightning-dev\...\@lwrjs\asset-transformer\build\es\index.js in this file the row 21. You can keep only this: const uri = relativePath;
// I believe there was working to make kind of dynamic latest version styles assignment or whatever. So you can comment the rest of the code:
//join(`${basePath}/${apiVersion}/${type}/${immutable}s/${hash}`, encodeURI(relativePath)); <--- this cause that "%5Cassets%5Cslds%5Cstyles%5Csalesforce-lightning-design-system.min.css" generation.
Also can be changed (but not necessary):
build\preview\layouts\performance.njk
build\preview\layouts\preview.njk
this files: on the top change the href from $assets/slds/.../ -> /assets/slds/styles/salesforce-lightning-design-system.min.css
For me it fix the issue and no more error. Styles are applied correctly (not sure why it's opened for me in dark mode, but I believe it's a different story) but be aware that text in dark mode may not be visible (so component rendered, but you not see (use inspector)).
(if it fix the issue [and it should] mark as best answer thanks).