ios16.3.1 无法打开任何页面 #9221
Replies: 6 comments 2 replies
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
📦 Deployment environmentDocker 📦 Deployment modeServer-side mode (lobe-chat-database mirror) 📌 Software version1.127.3 💻 System environmentiOS 🌐 BrowserSafari 🐛 Question descriptionAfter the page is downloaded, it will either get stuck in the startup application... or it will prompt a client-side exception has occurred... The paradox is that I can't see any errors in console in the inspector. Sometimes you can display regex illegal using Alook, but the vconsole is stuck and cannot view specific information. 📷 Reproduction stepsiPad m1 version ios16.3.1, any browser is stuck or an error is found 🚦 Expected resultsNo response 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
Hi @snowie2000! I'm Dosu and I’m helping the lobe-chat team. 这个问题的根本原因是 Lobe Chat 前端代码使用了现代 JavaScript 正则表达式特性(如命名捕获组),而 iOS 16.3.1 的 Safari 浏览器并不支持这些语法,会导致 “regex illegal” 错误和客户端异常,页面无法正常加载 相关代码分析。 目前没有官方兼容旧版 iOS/Safari 的解决方案,也没有相关的 polyfill 或降级处理。社区和维护者也确认了类似问题,且在新版依然存在 类似反馈。 可行的解决办法有:
目前没有简单的配置或参数可以解决这个兼容性问题。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
升级下系统?到 16.4 其实就没事了 |
Beta Was this translation helpful? Give feedback.
-
@dosu regex确实是无法被完全polyfill的,但是我看了创建的代码,实际上如果不使用/xxx/语法,而是使用new RegExp语法的话,是很容易被polyfill的,改动量也不大 |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 我自己尝试了下直接用regexp-polyfill然后把plugin.ts中的/xxx/语法直接改为new RegExp是可以打包通过的,但最终build我不太清楚这个项目怎么做,实在比较复杂不了解,没办法放到我服务器上去测试。 另外根据https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group 的说法,corejs中就包含了对应的polyfill,当然它也只能用于new RegExp,并不能用于/xxx/语法 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
1.127.3
💻 系统环境
iOS
🌐 浏览器
Safari
🐛 问题描述
页面下载后要不就卡在启动应用中... 要不就是提示 a client-side exception has occurred...
吊诡的是我在inpector中看不到console的任何错误。用Alook查看有时能显示regex illegal,但vconsole卡死无法查看具体信息
📷 复现步骤
ipad m1版本ios16.3.1,任意浏览器打开均卡住或出错
🚦 期望结果
No response
📝 补充信息
No response
Beta Was this translation helpful? Give feedback.
All reactions