[Bug]: Unhandled Runtime Error(RangeError) while running on my local server
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
Summary
When i was reading the docs on my local server, and doing the exercises in the editor, an error occurred.
Unhandled Runtime Error
RangeError: Position 115 is out of range for changeset of length 114
ignore frames
mapPos
node_modules/@codemirror/state/dist/index.js (801:1)
findSharedChunks
node_modules/@codemirror/state/dist/index.js (3519:1)
compare
node_modules/@codemirror/state/dist/index.js (3313:1)
findChangedDeco
node_modules/@codemirror/view/dist/index.js (3053:13)
update
node_modules/@codemirror/view/dist/index.js (2585:1)
update
node_modules/@codemirror/view/dist/index.js (6557:1)
flush
node_modules/@codemirror/view/dist/index.js (6261:1)
forceFlush
node_modules/@codemirror/view/dist/index.js (6206:1)
measure
node_modules/@codemirror/view/dist/index.js (6660:1)
requestMeasure/this.measureScheduled<
node_modules/@codemirror/view/dist/index.js (6811:1)
Page
react.dev(running on my localhost)
Details
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
在本機讀取 react.dev 並在編輯器中使用練習時重現該錯誤。從回報的 @codemirror/state mapPos 和 @codemirror/view update 堆疊框架開始,然後追蹤該更新周圍的 react.dev 編輯器整合。練習編輯器能夠在沒有 RangeError 的情況下執行即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 30/100