ant-design / ant-design/react-tutorial
puzzlecards.js error 使用dva @concat报错
- Dominant language
- JavaScript
- Stars
- 432
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
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

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the file containing PuzzleCardsPage and the reported lines 23–28, then inspect the decorator/export syntax and the ESLint configuration or parser in use. Reproduce the lint error and verify that the tutorial code passes ESLint without the reported parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100