Support » Plugin: Popup anything on click » Uncaught Error: only one instance of babel-polyfill is allowed

  • Resolved itmjlee

    (@itmjlee)


    This happens when I try to use twenty seventeen theme and the popup anything on click plugin together.

    The error shows up when I set the default header video but doesn’t show up when using the header image in the twenty seventeen’s header media section.

    Can anyone help me please? Thank you.

    Below is the error message I see:

    Uncaught Error: only one instance of babel-polyfill is allowed
        at Object.<anonymous> (custombox.legacy.min.js?ver=1.5:15)
        at Object.1.2 (custombox.legacy.min.js?ver=1.5:15)
        at s (custombox.legacy.min.js?ver=1.5:15)
        at e (custombox.legacy.min.js?ver=1.5:15)
        at custombox.legacy.min.js?ver=1.5:15
    • This topic was modified 1 month, 2 weeks ago by itmjlee.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @itmjlee

    Can you please share your website link so that we can checkout the issue?

    May be you are using some other popup plugin that is also using custombox.legacy.min.js OR custombox.legacy.min.js added in your theme.

    We have added custombox.legacy.min.js file in our plugin like this:

    if( !wp_script_is( 'jquery-custombox-legacy', 'registered' ) ) {
    			wp_register_script( 'jquery-custombox-legacy', POPUPAOC_URL.'assets/js/custombox.legacy.min.js', array('jquery'), POPUPAOC_VERSION, true );	
    		}

    If third party library is a jQuery library, then handle should be prefixed with jquery-

    Hi @anoopranawat

    Here is the link of the website:
    http://www.kumkangrestaurant.co.nz

    Other plugin I can think of using the popup maybe the Modula plugin.
    However, there was no such error when Modula and Popup anything on click plugins are used together.

    I only can see this error message when the header video feature is used and there is no error message when I switch it to the header image in twenty seventeen theme.

    I found that:
    1. Deleting popup anything on click shortcode while keeping header video from page – the error is gone
    2. Deleting header video while keeping popup anything on click from page – the error is gone

    I am not an experienced developer so any help would be appreciated.
    Thank you.

    • This reply was modified 1 month, 2 weeks ago by itmjlee.
    • This reply was modified 1 month, 2 weeks ago by itmjlee.
    • This reply was modified 1 month, 2 weeks ago by itmjlee.
    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Thanks for the detail
    We need to check the issue we will get back to you when the solution found.

    Thanks

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    I found that when you are adding Video in header section, theme is adding wp-polyfill.min.js from vendor section:
    <script src='https://www.kumkangrestaurant.co.nz/wp-includes/js/dist/vendor/wp-polyfill.min.js'></script>

    I am trying to find out the issue BUT not able to find it 🙁

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Kindly allow me 1 to 2 working days and let me find out the solution.

    Thank you for the support.
    I am looking for a positive response from you.

    Thanks.

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @itmjlee

    Just update the plugin to latest version where we have fixed the issue 🙂
    Please check and let me know.

    Once you update the plugin, just go to : Popup Anything –> Settings to manage “babel-polyfill” js. Under this setting page you can manage babel-polyfill disable to load from Popup anything plugin or add babel-polyfill on header to remove conflict

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @itmjlee,

    Is there any update? I checked your website and found that you are using latest version of this plugin and also video is not added in the header.

    Are you still facing the issue?

    Thanks Anoop,

    There is no error message coming up after updated to the latest version.
    I switched back to Video and tested fine.

    Works perfect! Thank you!!!

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @itmjlee

    Can you please share your rating and review if you like our plugin?

    Hi @anoopranawat,

    Will do. Thanks for the best support.
    Cheers.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.