#36128·react

[编译器错误]: React 编译器错误: 在组件从工厂返回时,`useEffect` 中丢失了闭包(导致 `ReferenceError: <标识符> 未定义`)

作者: budarin创建于 2026年3月23日更新于 2026年10月1日
标签Type: BugStatus: Unconfirmed

这是什么问题呢? - [x] React 编译器核心(JS 输出不正确,或者优化后您的应用程序运行不正常) - [ ] babel-plugin-React-compiler(安装或使用 Babel 插件时出现构建问题) - [ ] eslint-plugin-React-hooks(安装或使用 eslint 插件时出现构建问题) - [ ] React-compiler-healthcheck(安装或使用 healthcheck 脚本时出现构建问题)