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'
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.