Cannot parse anonymous classes
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- babel, javascript, react
Research direction
The issue names no files, tests, or entry points. Start by reproducing the anonymous React.PureComponent input and tracing the path that produces “no converter for: null”; done means either unnamed classes are supported or the issue receives a clear, explicit rule and error message, though the preferred direction remains undecided.
Written by the indexing model from the issue text.
Description
Currently
export default class extends React.PureComponent<Props> {}
fails with a cryptic 'no converter for: null' error. We implicitly expect all classes (and maybe functions) passed to us to be named.
To resolve this we need to either:
a) Make this an explicit rule and add useful error messaging
or
b) Support unnamed classes (and maybe functions)
I am leaning towards b)
- Dominant language
- JavaScript
- Stars
- 188
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from atlassian/extract-react-types
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
atlassian/extract-react-types#245 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
atlassian/extract-react-types#209 ·
-
typescript
Difficulty 3/5 1-2 days Newbie friendliness 35/100
atlassian/extract-react-types#201 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
atlassian/extract-react-types#192 ·
-
@types/react question
Difficulty 4/5 3-5 days Newbie friendliness 25/100
atlassian/extract-react-types#180 · 6 comments ·
All issues in atlassian/extract-react-types
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·