Build fails with monaco-editor >= 0.56: monaco-editor/esm/vs/editor/editor.api no longer resolves
@liuxy0551 已經在處理了。
開始於 2026年10月28日。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 67/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript, vite
- 領域
- frontend
研究方向
Start with esm/fillers/monaco-editor-core.js and its .d.ts, then check the *.worker.js imports and how the package declares its monaco-editor peer range. Reproduce with monaco-editor 0.57.0 using Vite 8 and TypeScript with moduleResolution: bundler; determine a resolution approach that accounts for versions before 0.56. Done when the imports resolve and Monaco types remain intact across the supported peer range.
由索引模型根據 Issue 內容生成。
描述
Since 0.56, monaco-editor declares exports with "./*": "./esm/vs/*.js", so the filler's export * from 'monaco-editor/esm/vs/editor/editor.api' (esm/fillers/monaco-editor-core.js and .d.ts) resolves to esm/vs/esm/vs/editor/editor.api.js, which does not exist.
- Vite 8 (Rolldown):
Rolldown failed to resolve import "monaco-editor/esm/vs/editor/editor.api" from ".../monaco-sql-languages/esm/fillers/monaco-editor-core.js". - TypeScript (
moduleResolution: bundler): the module is not resolved, so withskipLibCheckevery Monaco type re-exported by the package silently becomesany. - The
*.worker.jsfiles importmonaco-editor/esm/vs/editor/editor.worker.js, broken the same way.
Reproduced with monaco-sql-languages 1.2.0 and 1.2.1 (same filler on main) and monaco-editor 0.57.0. Pointing the filler at monaco-editor/editor/editor.api fixes it on >= 0.56, but that path does not exist before 0.56, so it would mean raising the monaco-editor peer range, or importing from monaco-editor itself.
- 主要語言
- TypeScript
- 星號
- 295
- 分支
- 51
- 平均合併
- 7 天 17 小時
- 30 天內合併 PR
- 3
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
DTStack/monaco-sql-languages 的其他 Issue
-
支持 starrocks未關閉
難度 5/5 一週以上 新手友好度 15/100
DTStack/monaco-sql-languages#234 ·
-
[email protected] 存在 Revert Block 异常可能重新可做 @liuxy0551 於 185 天前認領,目前沒有進行中的 PR。 未關閉
DTStack/monaco-sql-languages#215 · 已指派 1 人 ·
-
monaco-editor v0.55.1 meet a completion error可能已有人在做 @liuxy0551 於 10 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 30/100
DTStack/monaco-sql-languages#213 · 1 則留言 · 已指派 1 人 ·
-
Integrate with @monaco-editor/react & Nextjs?可能已有人在做 @liuxy0551 於 10 天前認領。 未關閉documentation help wanted
難度 4/5 3-5 天 新手友好度 25/100
DTStack/monaco-sql-languages#204 · 已指派 1 人 ·
-
難度 5/5 一週以上 新手友好度 25/100
DTStack/monaco-sql-languages#203 · 2 則留言 ·
查看 DTStack/monaco-sql-languages 的全部 Issue
相似的 Issue
-
content triage
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
tensorflow/tfjs#8754 ·
-
tool-submission
難度 1/5 1 小時以內 新手友好度 83/100
BraveOPotato/NoSignups#2348 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
code-yeongyu/oh-my-openagent#12784 ·
維護者通常 1 天內回覆
-
external-issue to-triage
難度 2/5 1-3 小時 新手友好度 71/100
維護者通常 1 天內回覆