Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Babel polyfill conflict whenever AJAX Search Pro plugin is active.
This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 11 months ago.
- AuthorPosts
- April 1, 2021 at 11:34 pm #32520
Hi,
We encountered an issue, whenever the AJAX Search Pro plugin is active we have this error in error console:
“Uncaught Error: only one instance of babel-polyfill is allowed”
It conflicts with components on our site that use babel polyfill. As a result some components on the page is not loaded.Is there a way to disable/enable babel polyfill from the AJAX Search Pro plugin?
Thanks,
RenoApril 2, 2021 at 9:48 am #32529Hi Reno,
I believe the scrollbar script uses a polyfill method, it is probably from Babel. Try turning it off here explicitly, it should resolve the issue: https://i.imgur.com/WGB4fJB.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 2, 2021 at 4:49 pm #32534I have tried turning off the scrollbar and also Compatibility > CSS & JS Compatibility > Display the default search box on old browsers? (IE<=8).
The issue still persist.
Uncaught Error: only one instance of babel-polyfill is allowed.Please advise. Let us know if we could to tweak it from the plugin code.
April 2, 2021 at 5:53 pm #32536Ernest,
additional information:
– This error will still appear even if I do not put the search shortcode into the page. So, even the search element is not on the page as long as the plugin is active the error “Uncaught Error: only one instance of babel-polyfill is allowed.” will appear.Thank you,
RenoApril 3, 2021 at 8:26 am #32541I’m not aware of any other resource using the babel polyfill algorithm, certainly not our internals. I suspect babel may false positively detect something as the polyfill.
Best,
Can you please add temporary back-end and FTP details. I will try to debug this line-by-line.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
April 3, 2021 at 7:04 pm #32556You cannot access this content.April 6, 2021 at 6:33 am #32560Ernest,
How do I dequeue/deregister wp-polyfill from AJAX Search Pro plugin?
Thanks,
RenoApril 6, 2021 at 8:52 am #32564Hi Reno,
The plugin does not use React, so that is why I am only guessing why the other module thinks it has the polyfill enabled. I am guessing, that either some sort of a dependency causing the issue, or the app false positively thinks the module is queued.
Best,
Without debugging this I am not able to tell what it is. I looked through all the scripts, but the only one I could find traces of similar code to babel polyfill is the external scrollbar script.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.