Mixing of require() and import statement
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, react, rollup
- 領域
- build-system, frontend
研究方向
先檢查 src/DomWrap.jsx 和 src/utils.js 中的模組陳述式,然後使用相依元件重現回報的 Rollup 打包問題。完成的標準是這些檔案不再混用 CommonJS require() 和 ES 模組 import 語法,且相依項目的打包成功。
由索引模型根據 Issue 內容生成。
描述
Assuming that this project is being developed using ES modules, there is an issue on the src/DomWrap.jsx and src/utils.js files.
There is a mix of require() (CommonJS syntax) and import (ES6 module syntax).
This causes problems when trying to bundle something that depends on this component (in my case that something antd) and bundling it with rollup (that takes ES6 modules as a default).
- 主要語言
- TypeScript
- 星號
- 700
- 分支
- 271
- 平均合併
- 1 小時 50 分鐘
- 30 天內合併 PR
- 3
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-component/menu 的其他 Issue
-
MenuItemProps cannot extend HTMLAttributes under exactOptionalPropertyTypes可能已有人在做 @young-tree 於 15 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
react-component/menu#904 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 38/100
react-component/menu#833 · 1 則留言 ·
-
Ho未關閉
難度 5/5 一週以上 新手友好度 1/100
react-component/menu#790 ·
-
難度 3/5 1-2 天 新手友好度 35/100
react-component/menu#743 ·
-
難度 4/5 3-5 天 新手友好度 25/100
react-component/menu#742 ·
查看 react-component/menu 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
Chocobozzz/PeerTube#7901 ·
維護者通常 3 天內回覆
-
area:tools bug has repro
難度 2/5 1-3 小時 新手友好度 86/100
anthropics/claude-code#113984 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
維護者通常 1 天內回覆
-
area/web platform/windows type/bug version/v2
難度 2/5 1-3 小時 新手友好度 65/100
anomalyco/opencode#68237 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100