We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.2.3
4.3.0-dev.20210314
const Component = (): JSX.Element => { const categories = ['Fruit', 'Vegetables']; return ( <ul> <li>All</li> {categories.map((category) => ( <li key={category}>{category}</li> ))} </ul> ); }; export default Component;
The following TypeScript error:
Excessive stack depth comparing types 'FlatArray<Arr, ?>' and 'FlatArray<Arr, ?>'. ts(2321)
I expect this code not to produce an error.
To work around:
li
Possible related issue:
The text was updated successfully, but these errors were encountered:
Duplicate of #43249—different trigger, same bug.
Sorry, something went wrong.
Found another workaround - just add an extra fragment:
<ul> <li>Hello</li> <> {[1, 2, 3].map((n) => ( <li key={n}>{n}</li> ))} </> </ul>
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
Found another workaround - just add an extra fragment: <ul> <li>Hello</li> <> {[1, 2, 3].map((n) => ( <li key={n}>{n}</li> ))} </> </ul>
Thanks, a lot!
No branches or pull requests
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
4.2.3
and4.3.0-dev.20210314
.💻 Code
🙁 Actual behavior
The following TypeScript error:
🙂 Expected behavior
I expect this code not to produce an error.
To work around:
li
) OR4.3.0-dev.20210314
to the workspace's (4.2.3
).Possible related issue:
The text was updated successfully, but these errors were encountered: