• Resolved soulwasted

    (@soulwasted)


    Hi,

    I’ve updated some plugins.
    Now I got this error in console when editing ERF form in admin…

    form-render.min.js?ver=4.9.8:6 Uncaught Error: only one instance of babel-polyfill is allowed
        at Object.<anonymous> (form-render.min.js?ver=4.9.8:6)
        at Object.<anonymous> (form-render.min.js?ver=4.9.8:6)
        at e (form-render.min.js?ver=4.9.8:6)
        at Object.<anonymous> (form-render.min.js?ver=4.9.8:6)
        at e (form-render.min.js?ver=4.9.8:6)
        at form-render.min.js?ver=4.9.8:6
        at form-render.min.js?ver=4.9.8:6

    Maybe it’s problem of another plugin. But I run into this here.

    Thanks for investigation.

    pep?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter soulwasted

    (@soulwasted)

    From my “investigation” which plugins use “babel-polyfill” on my web.
    — easy-registration-forms
    — sitepress-multilingual-cms
    — wordpress-seo

    Maybe you are “handling” Yoast SEO (wordpress-seo) but WPML (sitepress-multilingual-cms) still breaks it.
    Don’t know… Just thinking aloud.

    Thread Starter soulwasted

    (@soulwasted)

    Ok… I’ve added
    wp_deregister_script('wp-polyfill');
    To your “build.php” as temporary solution.
    And your forms work now.

    It’s dirty but maybe it will give you some clue ??

    • This reply was modified 5 years, 12 months ago by soulwasted.
    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello,

    It seems one of your new plugin is loading another instance of babel-pollyfill library. As of now this library is not shipped with WordPress hence plugin vendors uses their own library.

    It appears some other plugin is loading different version of the library on our page. We would suggest you to deactivate the plugins one by one to identify the culprit.

    As this issues appears only on form builder page, as a temporary resolution you can disable the other plugin while editing form. Soon WordPress will be adding this library then this conflict will be resolved.

    Thread Starter soulwasted

    (@soulwasted)

    Hi,

    it’s Yoast SEO as I didn’t mention above but found it.
    Path: wp-content/plugins/wordpress-seo/admin/class-admin-asset-manager.php

    Code:

    // IE11 needs wp-polyfill to be registered before react.
    if ( $script && ! in_array( 'wp-polyfill', $script->deps, true ) ) {
    	$script->deps[] = 'wp-polyfill';
    }

    And some more in the same file…

    So I’ve added
    wp_deregister_script('wp-polyfill');
    To your “build.php” as temporary solution.

    pep?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘form-render.min.js throws error’ is closed to new replies.