Incompatibility with ES Modules (type: "module") [Node 20+]
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, node.js
调研方向
Start by reading the package entry points and package.json to see how the SDK is exposed to Node projects. Reproduce the reported import error with Node 20+ and "type": "module"; the issue does not name files or tests. Done means the documented import works in an ESM project without the require workaround or a linting failure.
由索引模型根据 Issue 内容生成。
描述
Using import Openapi from 'openapi-sdk' in an ESM project triggers a SyntaxError: Cannot use import statement outside a module.
Context: Node 20+, "type": "module" set in package.json.
Workaround: Use require('openapi-sdk').default, but this breaks linting.
- 主要语言
- JavaScript
- 星标
- 20
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi/openapi-nodejs-sdk 的其他 Issue
-
config documentation
难度 3/5 1-2 天 新手友好度 45/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
-
bug nestjs
难度 3/5 1-2 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 43/100
查看 openapi/openapi-nodejs-sdk 的全部 Issue
相似的 Issue
-
docs hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 85/100
pacocartones/free-llm-api-hub#347 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
cytoscape/cytoscape.js#3536 ·
维护者通常 15 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cuttle-cards/cuttle#1440 ·
维护者通常 1 天内回复
-
URL-encoded parser builds nested objects nothing reads可能已有人在做 @Senthil455 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
Janani-bn/CivicFix#168 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
code-yeongyu/oh-my-openagent#10172 ·
维护者通常 1 天内回复