Website: the docs site's own service worker can't install (navigateFallback "/" isn't precached)
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- devops, documentation
调研方向
首先检查构建生成的 .output/public/sw.js 和文档站点的 @vite-pwa/nuxt 配置。选择一种建议的修复方案:移除 PWA 集成,或者将 registerType 设为 autoUpdate,并将 workbox.navigateFallback 设为 null。在 DevTools 中确认 service worker 已安装。
由索引模型根据 Issue 内容生成。
描述
From the 2026-10-08 front-end review, checked in the built .output/public/sw.js.
sw.js registers NavigationRoute(createHandlerBoundToURL("/")), but / isn't in the precache manifest (only _payload.json files and _nuxt assets are). Workbox throws non-precached-url when the route is registered, so the worker fails to install. Our own PWA page warns readers about this exact navigateFallback trap.
If it did install, registerType defaults to 'prompt' and the site has no prompt UI, so new docs would wait until every tab is closed.
Fix. Either remove @vite-pwa/nuxt from the docs site (a docs site gains little from it), or set registerType: 'autoUpdate' and workbox.navigateFallback: null. Then confirm in DevTools that the worker installs.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 1 小时 20 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/docs 的其他 Issue
-
documentation
难度 4/5 3-5 天 新手友好度 45/100
components-web-app/docs#290 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
components-web-app/docs#289 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 15/100
components-web-app/docs#237 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
components-web-app/docs#1 · 3 条评论 ·
查看 components-web-app/docs 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialog可能已有人在做 @seijikohara 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
home-assistant/frontend#55323 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 72/100
lingdojo/kana-dojo#33188 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
self-driving
难度 1/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复