error - ReferenceError: require is not defined in ES module scope, you can use import instead
未关闭
- 主要语言
- JavaScript
- 星标
- 46
- 派生
- 8
- PR 合并指标
- 30 天内没有已合并 PR
描述
This file is being treated as an ES module because it has a '.js' file extension and '/node_modules/convertkit-react/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先检查 package.json 和触发所报告 require 错误的 JavaScript 文件,以确认该 package 是如何作为 ES module 处理的。重现该错误,然后验证所选的模块格式更改能够消除该错误,同时不会破坏 package 的现有行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100