The TypeError: this.each when wp.media.open() after using popper.js for bootstrap 4

Question

I’m creating page metabox layout through bootsrap 4 framework. I added to admin enqueue the new js files: jquery-3.0.0, jquery-migrate-3.0.1 as well as popper-1.12.3 and bootstrap. Also the custom field was created in metabox. I get a image link used admin media modal frame. I mean the frame used jQuery to get wp.media object, but after additing popper.js the wp.media.open() function got the Uncaught TypeError: this.each is not a function in some files.
enter image description here
enter image description here
May someone fix this issue?

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/the-typeerror-this-each-when-wp-media-open-after-using-popper-js-for-bootstrap-4/">

The TypeError: this.each when wp.media.open() after using popper.js for bootstrap 4</a>
0
DmitriyRF 2 months 0 Answers 81 views 0

Leave an answer