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

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack #120

Open
eriknyk opened this issue Nov 28, 2024 · 0 comments

Comments

@eriknyk
Copy link

eriknyk commented Nov 28, 2024

Describe the bug
I got the following Warn:

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack

Exactly when <Lottie component is rendered.

image

To Reproduce
Steps to reproduce the behavior:

  1. Render any lottie json
  2. See warning: Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack

Expected behavior
No warning should be in console.

Screenshots
image

Additional context
Using version: "lottie-react": "^2.4.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant