Xeen Xeen - 1 year ago 328
Javascript Question

Getting Cannot read property 'offsetWidth' of undefined with bootstrap carousel script

I created a

Bootstrap 3.3
and it works on my local machine, but when I upload the whole thing on server where the bootstrap js file is being compiled together with other files in a single file, I get this error:

Cannot read property 'offsetWidth' of undefined
- has anybody faced this and are there any known solutions to this issue?

Answer Source

For me it was because I hadn't set an active class on any of the slides.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download