Title: JavaScript error in Autocomplet widget
Last modified: February 26, 2025

---

# JavaScript error in Autocomplet widget

 *  Resolved [rosigroupcom](https://wordpress.org/support/users/rosigroupcom/)
 * (@rosigroupcom)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/javascript-error-in-autocomplet-widget/)
 * Hello, after installing the demo product import and reindicating the products
   in Meilisearch, I’m stuck on a JS issue in the Autocomplete Search widget. The
   products were indexing fine and quite fast. I have the demo running on the current
   version of WordPress ( 6.7.2) with the basic Twenty Twenty-Four theme and Woocommerce(
   9.7.0). I hope the bug will soon be fixed and the plugin will be usable. It’s
   great that you’ve taken the plunge into developing this plugin and I’m keeping
   my fingers crossed for more work.
 * **Uncaught TypeError: Cannot read properties of undefined (reading ‘map’)**
   at
   getSources (view.js?ver=5cf390296a4d1f899d31:1:278385)at view.js?ver=5cf390296a4d1f899d31:
   1:194647at view.js?ver=5cf390296a4d1f899d31:1:195184at Array.map ()at Object.
   getSources (view.js?ver=5cf390296a4d1f899d31:1:194577)at Pt (view.js?ver=5cf390296a4d1f899d31:
   1:203607)at Object.onChange [as input](https://wordpress.org/support/topic/javascript-error-in-autocomplet-widget/212344?output_format=md)
   at HTMLInputElement.Ae (view.js?ver=5cf390296a4d1f899d31:1:229197)

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

 *  Plugin Author [ponopress](https://wordpress.org/support/users/ponopress/)
 * (@ponopress)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/javascript-error-in-autocomplet-widget/#post-18332732)
 * Hello [@rosigroupcom](https://wordpress.org/support/users/rosigroupcom/) ,
 * Thank you for using our plugin!
 * We tested the plugin in a setup identical to yours, running WordPress version
   6.7.2 and WooCommerce version 9.7.0. After importing the demo products and indexing
   them, the Autocomplete block functioned correctly on our end.
 * Please ensure that the product index is selected in the Autocomplete block settings,
   as shown in the screenshot here: [https://tinyurl.com/2awkx33o](https://tinyurl.com/2awkx33o)
 * If the issue persists, could you share your site link with us?
 * Best regards,
   Pono Press
    -  This reply was modified 1 year, 3 months ago by [ponopress](https://wordpress.org/support/users/ponopress/).
 *  Thread Starter [rosigroupcom](https://wordpress.org/support/users/rosigroupcom/)
 * (@rosigroupcom)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-in-autocomplet-widget/#post-18356726)
 * Hello,
   I found out where my problem was. I forgot to set the Meilisearch index
   in the widget settings.Now it’s working properly. 5 stars for me.

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

The topic ‘JavaScript error in Autocomplet widget’ is closed to new replies.

 * ![](https://ps.w.org/yuto/assets/icon-256x256.png?rev=3137522)
 * [Yuto - Meilisearch Integrator](https://wordpress.org/plugins/yuto/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yuto/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yuto/)
 * [Active Topics](https://wordpress.org/support/plugin/yuto/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yuto/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yuto/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rosigroupcom](https://wordpress.org/support/users/rosigroupcom/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/javascript-error-in-autocomplet-widget/#post-18356726)
 * Status: resolved