Fix import of ../utils and ./utils
未关闭
还没有人认领这个 Issue。
- 主要语言
- Luau
- 星标
- 569
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'm only able to get devtools to run (with rojo translating ../utils to script.Parent.Parent:WaitForChild('utils') if I change this in react-devtools-shared/src/backend/renderer.luau :
#ocal utils = require(script.Parent:WaitForChild('utils')) # does not work
local utils = require(script.Parent.Parent:WaitForChild('utils')) # does work
So, I think it should be this, because getUID() is in utils not backend/utils:
local utils = require("../utils")
Otherwise getUID() and getDisplayName() etc are nil.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 react-devtools-shared/src/backend/renderer.luau 中 utils 导入附近开始,并将引用的 utils 位置与 backend 目录进行比较。运行 issue 中描述的 devtools 设置或复现步骤,然后验证 getUID()、getDisplayName() 和其他 utils 均可用,并且 devtools 能够成功运行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua, react
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100