Skip to content
New issue

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

[BUG] Warning: Failed prop type: Invalid prop children of type array supplied to Alert, expected a single ReactElement #91

Closed
treoden opened this issue Aug 21, 2022 · 4 comments · Fixed by #95
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@treoden
Copy link
Collaborator

treoden commented Aug 21, 2022

Describe the bug
Invalid prop provided to the Alert component.

To Reproduce
Steps to reproduce the behavior:

  1. Start project in development mode
  2. Visit home page
  3. See the warning message in the developer console

Expected behavior
The warning message should disappear
Screenshots
Screenshot from 2022-08-21 21-15-24

@treoden treoden added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Aug 21, 2022
@treoden treoden assigned treoden and unassigned treoden Aug 21, 2022
@timagixe
Copy link
Contributor

Hello @treoden, please assign this issue on me, I will fix it while working on #93. Cheers!

@treoden treoden assigned treoden and timagixe and unassigned treoden Aug 22, 2022
@timagixe timagixe mentioned this issue Aug 22, 2022
10 tasks
@timagixe
Copy link
Contributor

@treoden I while working on this issue, I have found out that there are few other potentials places that are likely to introduce the same error Invalid prop.

Screen Shot 2022-08-23 at 12 17 50 AM

Should I adjust those children's PropTypes from element to node within the scope of #95? What do you think?

@treoden
Copy link
Collaborator Author

treoden commented Aug 23, 2022

Hi @timagixe,

Let's create another issue for them. I will do it soon
Thanks

@timagixe
Copy link
Contributor

@treoden, here it is - #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants