Title: ReferenceError: reverseDirection is not defined
Last modified: December 2, 2025

---

# ReferenceError: reverseDirection is not defined

 *  Resolved [antoaltsrl](https://wordpress.org/support/users/antoaltsrl/)
 * (@antoaltsrl)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/referenceerror-reversedirection-is-not-defined/)
 * Hi, I’m getting the following error only in the WordPress admin when editing 
   a page that contains the block:
 * `ReferenceError: reverseDirection is not defined`
 * Environment:
    - WP Swiper version: 1.3.7
 * In the console I also get a block validation error:
 * `Block validation failed for ``da/wp-swiper-slide`
 * **Content generated by the `save` function:**
 * `<div data-tab="slide-5" class="wp-swiper__slide swiper-slide"> <div class="wp-
   swiper__overlay-color" style="background-color:rgba(0, 0, 0, 0)"></div> <div 
   class="wp-swiper__slide-content"></div> </div>`
 * **Content retrieved from the post body:**
 * `<div data-tab="slide-5" class="wp-swiper__slide swiper-slide"> <div class="wp-
   swiper__overlay-color"></div> <div class="wp-swiper__slide-content"> </div> </
   div>`
 *  Any fix or workaround would be appreciated.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [antoaltsrl](https://wordpress.org/support/users/antoaltsrl/)
 * (@antoaltsrl)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/referenceerror-reversedirection-is-not-defined/#post-18739135)
 * When testing in a staging environment, it seems that the error is caused when
   I enable the “autoplay” parameter.
 *  Thread Starter [antoaltsrl](https://wordpress.org/support/users/antoaltsrl/)
 * (@antoaltsrl)
 * [6 months ago](https://wordpress.org/support/topic/referenceerror-reversedirection-is-not-defined/#post-18740386)
 * ok I saw that the problem has been fixed, thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ReferenceError: reverseDirection is not defined’ is closed to new replies.

 * ![](https://ps.w.org/wp-swiper/assets/icon-256x256.png?rev=2402464)
 * [WP Swiper](https://wordpress.org/plugins/wp-swiper/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-swiper/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-swiper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-swiper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-swiper/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [antoaltsrl](https://wordpress.org/support/users/antoaltsrl/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/referenceerror-reversedirection-is-not-defined/#post-18740386)
 * Status: resolved