ant-design / ant-design/react-tutorial
puzzlecards.js error 使用dva @concat报错
未关闭
- 主要语言
- JavaScript
- 星标
- 432
- 派生
- 155
- PR 合并指标
- 30 天内没有已合并 PR
描述
Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.
23 |
24 | @connect(mapStateToProps, mapDispatchToProps)
> 25 | export default class PuzzleCardsPage extends Component {
| ^
26 | componentDidMount() {
27 | this.props.onDidMount();
28 | }eslint

贡献指南
这个仓库没有索引到贡献指南
调研方向
从包含 PuzzleCardsPage 的文件以及报告的第 23–28 行开始,然后检查 decorator/export 语法和所使用的 ESLint 配置或 parser。重现 lint 错误,并验证教程代码能够通过 ESLint,且不会出现报告中的 parsing error。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- eslint, javascript, react
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100