Topic: Console being flooded by "Argument 1 is not an object" errors.
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.)
mlazaru staff answered 2 years ago
Hi,
the error comes from MDBCarousel, we are already aware of that. It will be fixed soon.
chalicham pro premium priority answered a 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>
</>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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