File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 88>   ;  ;  ;  ;  ; ·  ; 遇到问题请在 Github 上提 issue ,需要帮助请在 Github 上发 discussion ,看到了会回复。除特殊情况外,<b >请不要直接通过其它社交方式联系酪灰!</b >酪灰不是客服,不提供售后服务,并没有那么多的时间来回复私聊。还请谅解!<p >
99> ### 最后,喜欢本项目的话麻烦给个 STAR !阿里嘎多~
1010
11+ <p >  ; <p >
12+
13+ > [ !WARNING]
14+ > ## 关于 PWA 缓存的问题
15+ >   ;  ;  ;  ;  ; ·  ; 由于 PWA 依赖的 Workbox 组件已经<b >长达 1 年</b >没有发布新 Release ,导致 Workbox 仍在使用已经被弃用的 glob 版本 7.2.3 。这个问题造成项目在运行时提示包含弃用的依赖。 <p >
16+ >   ;  ;  ;  ;  ; ·  ; <b >So Google , fuck you !</b ><p >
17+ >   ;  ;  ;  ;  ; ·  ; 目前项目放弃对 PWA 缓存的支持,强制将 glob 覆盖到高版本。故编译时会得到错误 :<p >
18+ > ``` bash
19+ > PWA v1.0.3
20+ > mode generateSW
21+ > precache 8 entries (0.00 KiB)
22+ > files generated
23+ > dist/sw.js
24+ > dist/workbox-4523edd1.js
25+ > warnings
26+ > An error occurred when globbing for files. ' Cannot read properties of undefined (reading ' sync' )'
27+ >
28+ > ✓ built in 13.21s
29+ > ` ` `
30+ > & nbsp;& nbsp;& nbsp;& nbsp;& nbsp; ·& nbsp; 但除了缓存外并不会导致项目出现其它异常。如果需要启用这个功能,请删除 ` package.json` 内` overrides` 中的` " glob" : " ^11.0.3" ` ,然后重新执行` pnpm install` 。此功能应该会恢复正常,< p>
31+ > # ## So Google , fuck you !
32+
1133<p> <p>
1234<strong><h2>無名の主页</h2></strong>
1335</p>
You can’t perform that action at this time.
0 commit comments