Topic: Console being flooded by "Argument 1 is not an object" errors.

bmurphy premium asked 1 year ago


Expected behavior No Errors in console, or errors point to specific cause or reason

Actual behavior My console is being flooded with the following error:

Uncaught TypeError: Window.getComputedStyle: Argument 1 is not an object.

My app otherwise works fine to my knowledge. I'm just curious as to where this is coming from as it is distracting.

Resources (screenshots, code snippets etc.) enter image description here


Mateusz Lazaru staff answered 1 year ago


Hi,

the error comes from MDBCarousel, we are already aware of that. It will be fixed soon.


chalicham priority answered 1 year ago


for it is compile error

Compiled with problems: × 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 Eo (http://localhost:3001/static/js/bundle.js:32184:15) at http://localhost:3001/static/js/bundle.js:32319:29 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 Eo (http://localhost:3001/static/js/bundle.js:32184:15) at http://localhost:3001/static/js/bundle.js:32319:29 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 Eo (http://localhost:3001/static/js/bundle.js:32184:15) at http://localhost:3001/static/js/bundle.js:32319:29

my code <> https://mdbootstrap.com/img/Photos/Slides/img%20(15).jpg' alt='...' > First slide label

Nulla vitae elit libero, a pharetra augue mollis interdum.

</MDBCarousel>
</>


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: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 5.0.0
  • Device: Dell XPS
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No