ant-design / ant-design/react-tutorial

puzzlecards.js error 使用dva @concat报错

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
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
![image](https://user-images.githubusercontent.com/20319897/60961435-bb77c800-a33e-11e9-8e4a-b910916655a3.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.