Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hey folk’s

    Same Problems here but i managend to localize the Problem.
    In WP 6.6 “wp-pollyfill” is no longer enqueued as a dependency of react, so we have to manually add it. See also WP Core Changeset 57981

    I fixed it by adding the ‘wp-pollyill-inert’ and ‘regenerator-runtime’ to the admin_asset.php under src/dist/ in the plugin folder. Tested with WP 6.6.2

    <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url', 'wp-polyfill-inert', 'regenerator-runtime'), 'version' => 'e840dbccb709b08f13705356131ec424');

    There are also warnings in console that has to be fixed in the future, if the developer continue to work at this plugin. (ReactDom.render is no longer supported in React 18 and Support for defaultProps will be removed)

    Cheerio!

Viewing 1 replies (of 1 total)