Support inline compilation errors
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先定位 LiveEditor 和 LiveError 组件,并查看链接的 React 和 reactjs.org issue 以了解上下文。定义提议的 errors prop 如何将消息映射到 inline 位置,并在实现前确认预期的 UI;完成的标准是 LiveEditor 能够使用文档中规定的结构显示与编译器无关的 inline 错误。
由索引模型根据 Issue 内容生成。
描述
The LiveError component is useful for displaying compilation errors. But the LiveEditor component could be even more useful if it showed inline errors. For example:
Current UI
Potential UI
This support could probably be added in such a way that is not dependent on a specific compiler/toolchain. For example, LiveEditor could expose an additional prop errors that looked something like this:
type errors = Array<{
message: string,
rowNumber: number,
columnNumber?: number
}>
This issue is just being opened for discussion and is a follow-up from facebook/react/issues/11094 and reactjs/reactjs.org/issues/10
- 主要语言
- TypeScript
- 星标
- 4.6k
- 派生
- 260
- 平均合并
- 6 天 18 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FormidableLabs/react-live 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
FormidableLabs/react-live#419 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
FormidableLabs/react-live#417 ·
-
bug
难度 3/5 1-2 天 新手友好度 68/100
FormidableLabs/react-live#415 ·
-
bug
难度 3/5 1-2 天 新手友好度 52/100
FormidableLabs/react-live#413 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
FormidableLabs/react-live#411 · 1 条评论 ·
查看 FormidableLabs/react-live 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
mksglu/context-mode#1200 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/claude-code#96687 ·
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
AOSSIE-Org/DebateAI#582 · 2 条评论 ·