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

Failed to construct 'ImageData': The input data length is not equal to (4 * width * height). #465

Open
1 task done
taylorhelene opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working react

Comments

@taylorhelene
Copy link

taylorhelene commented Feb 6, 2025

Image

Overview

After adding the code to my program, I am getting this error when the page loads and after I navigate back to the page:

Uncaught runtime errors:
×
ERROR
Failed to construct 'ImageData': The input data length is not equal to (4 * width * height).
IndexSizeError: Failed to construct 'ImageData': The input data length is not equal to (4 * width * height).
    at C._render (http://localhost:3000/static/js/bundle.js:44140:148)
    at C._draw (http://localhost:3000/static/js/bundle.js:44153:16)

I am getting this issue when using both version: 0.12.3 and 0.12.2. Here is my code:

//...
<div className="row about ">
        <DotLottieReact
          src="https://lottie.host/2a881668-7aa8-4bfe-a235-f68888a2bceb/dGmyFGxjSL.lottie"
          loop
          autoplay
          className="col-sm-4 about-img object-fit-contain"      
          />
//...
<div

I am using Windows Subsystem for Linux during development

Consuming repo

What repo were you working in when this issue occurred?

@lottiefiles/dotlottie-react

Labels

  • Add the Type: Bug label to this issue.
@theashraf theashraf self-assigned this Feb 7, 2025
@theashraf theashraf added bug Something isn't working react labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react
Projects
None yet
Development

No branches or pull requests

2 participants