Build fails with monaco-editor >= 0.56: monaco-editor/esm/vs/editor/editor.api no longer resolves
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vite
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 295
- Fork
- 50
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DTStack/monaco-sql-languages
-
[email protected] 存在 Revert Block 异常Có thể làm lại được @liuxy0551 đã nhận 159 ngày trước và không có pull request nào đang mở. Đang mở
DTStack/monaco-sql-languages#215 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
DTStack/monaco-sql-languages#213 · 1 bình luận ·
-
add support for clickhouseĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
DTStack/monaco-sql-languages#210 · 1 bình luận ·
-
add support for mssqlĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
DTStack/monaco-sql-languages#209 ·
-
documentation help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
DTStack/monaco-sql-languages#204 ·
Tất cả issue của DTStack/monaco-sql-languages
Issue tương tự
-
cleanName keeps a state code that's joined to the word before it (SavannahGa → "Savannah Ga")Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openwatersio/slackwater-database#281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted bug via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pingdotgg/t3code#18690 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bayern feature:Application ready web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
digitalfabrik/entitlementcard#3176 ·
Maintainer thường phản hồi trong vòng 7 ngày
-
[BUG] 运行位置的分支列表不自动刷新,外部新建的分支看不到Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NanmiCoder/cc-haha#1533 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày