Topic: mdb-react-ui-kit not throwing errors randomly

Divyanshu Sharma free asked 1 year ago


I am getting this error again and again on my react website.

I am using mdb-react-ui-kit free version in my App.tsx page in the following way

import * as mdb from "mdb-react-ui-kit";

ERROR
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at It (http://localhost:3000/static/js/bundle.js:26519:15)
    at http://localhost:3000/static/js/bundle.js:26654:29

Mateusz Lazaru staff commented 1 year ago

Are you using MDBCarousel in your project?


Divyanshu Sharma free commented 1 year ago

Yes! I am using it in my project!


Mateusz Lazaru staff answered 1 year ago


The problem is related to MDBCarousel. We will fix it soon, but for now, unfortunately I haven't any workaround solution for you.


Divyanshu Sharma free commented 1 year ago

Thank you for you assistance. Helped me identify the problem :)



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 6.0.0
  • Device: Mackbook M1
  • Browser: Chrome
  • OS: macOS
  • Provided sample code: No
  • Provided link: No