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