Repository navigation
fix: Update service worker to fetch dotnet.js instead of dotnet.boot.js for .NET 10 - #1004
Conversation
… for .NET 10 compatibility Co-authored-by: jeromelaban <[email protected]>
|
|
Co-authored-by: jeromelaban <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-river-0087b630f-1004.eastus2.1.azurestaticapps.net |
|
@copilot There's an additional issue with uno-config.js, which is part of the |
…etsFolder Co-authored-by: jeromelaban <[email protected]>
Fixed in commit 1f88e80. Updated the offline_files list to include |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-river-0087b630f-1004.eastus2.1.azurestaticapps.net |
|
@copilot Let's change all the installed .NET versions in CI scripts to .NET 10.0.100 |
Co-authored-by: jeromelaban <[email protected]>
Updated in commit 3a5c8f6. Changed all .NET versions in CI scripts to 10.0.100:
|
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-river-0087b630f-1004.eastus2.1.azurestaticapps.net |
|
/unobot backport release/stable/10.0 |
…bp1004 fix: Update service worker to fetch dotnet.js instead of dotnet.boot.js for .NET 10 (backport #1004)
In .NET 10,
dotnet.boot.jswas merged intodotnet.jsfor performance. The service worker still attempted to fetch the non-existent file, causing a 404 error when PWA is enabled.Changes
_framework/dotnet.boot.jsto_framework/dotnet.jsdotnet.jsinstead ofdotnet.boot.js, and fixeduno-config.jspath to include{PackageAssetsFolder}/prefix for correct PWA caching.github/workflows/ci.ymlandbuild/ci/dotnet-install.ymlThe boot configuration extraction logic (regex matching
/*json-start*/and/*json-end*/markers) remains unchanged, as the format is identical between files.Warning
<issue_title>[ServiceWorker] Error processing blazor.boot.json: Failed to fetch dotnet.boot.js: 404</issue_title>
<issue_description>### Current behavior 🐛
When PWA is enabled, the service worker shows the following error message:
This is expected as in net10, this file does not exist anymore.
Expected behavior 🎯
No error message.
How to reproduce it (as minimally and precisely as possible) 🔬
No response
Workaround 🛠️
No response
Renderer 🎨
Affected platforms 📱💻🖥️
No response
Uno.Sdk version (and other relevant versions) 📦
10.0.10
IDE version 🧑💻
No response
Anything else we need to know? 💬
No response</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.