How to fix M2 Infinite Scroll issue - IASPagingExtension is not defined

Created by Nicole Le, Modified on Tue, 24 Jul 2018 at 06:30 PM by Nicole Le

Issue: When I set production mode in my website,  Infinite Scroll stops working. It shows Error :Uncaught ReferenceError: IASPagingExtension is not defined


Solution: 

The issue happens when admin enables JavaScript Bundling in Stores -> Configuration -> Developer -> Javascript Setting -> Enable JavaScript Bundling = Yes




To fix this issue, you could edit etc/view.xml file of your current theme: app/design/frontend/<your_vendor_name>/<your_theme_name>etc/view.xml

Add this part of code into <exclude>: <item type="file">Bss_InfiniteScroll::js/jquery-ias.min.js</item>



You could refer the solution here https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-create.html


For more information about product, please refer Infinite Scroll for Magento 2 page.

If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article