Support

Account

Home Forums Backend Issues (wp-admin) Can't add Images on options page. Reply To: Can't add Images on options page.

  • Deactivated all other plugins (except Timber required for my theme) and error persist.

    Using Gutenberg editor.

    I was able to narrow down what was causing the issue:
    I have a script enqueued in the admin

    wp_enqueue_script('admin', get_template_directory_uri() . '/assets/src/js/admin.js',
    			array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-plugins', 'wp-components', 'wp-edit-post', 'wp-api', 'wp-editor', 'wp-hooks', 'lodash', )
    			, '1', false );

    When I remove the following dependencies the error goes away

    'wp-components', 'wp-edit-post', 'wp-api', 'wp-editor', 'wp-hooks'