Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

window.onerror in utils/state.js throws when the error event carries no Error object (e.g. the benign ResizeObserver loop), so nothing reaches handle_frontend_exception

已关闭 适合新手
#7,482 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@flcrom 已经在做这个了。

开始于 2026年10月11日。

  • #7544 来自 @flcrom —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

从编译生成 .web/utils/state.js 的源文件(项目 web 模板下的模板 state.js)开始,定位由 error.name 构建 info 的 window.onerror 处理程序。为 error == null 添加一个守卫,回退到 message/source/line 参数,使事件仍能到达 handle_frontend_exception。当 error 为 null 的 ErrorEvent(例如良性的 ResizeObserver 循环)不再抛出 TypeError 并被报告为前端异常时即为完成;探测脚本 ent_grid/scripts/probe_mantine_pageerror.py 或手动派发事件可以确认这一点。

由索引模型根据 Issue 内容生成。

描述

Severity: LOW, pre-existing (same code on 0.9.12 and 0.10.0a2).

Opening a mantine MultiSelect and clicking an option fires the benign ResizeObserver loop completed with undelivered notifications ErrorEvent with error=null; the compiled .web/utils/state.js window.onerror handler (info: error.name + …) then throws TypeError: Cannot read properties of null (reading 'name') (at window.onerror (utils/state.js:1195)), which surfaces as a page error and means the original event never reaches handle_frontend_exception. Guard for error == null and fall back to the message/source/line arguments.

Evidence: ent_grid/out/mantine_{dev,prod}_a2/, out/mantine_prod_s912/ (page_errors), ent_grid/scripts/probe_mantine_pageerror.py; finding N-028 in FINDINGS.md.

主要语言
Python
星标
28.9k
派生
1.8k
平均合并
2 天 14 小时
30 天内合并 PR
211

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

reflex-dev/reflex 的其他 Issue

查看 reflex-dev/reflex 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。