Missing jQuery Dependency when deploying WPML

Recently I encountered a strange issue when deploying WPML with Sage 10 it seems like on the other languages jQuery isn’t enqueued by default.

To resolve this issue edit app/setup.php

add_action('wp_enqueue_scripts', function () {
    bundle('app')->enqueueJs(true, ['jquery'])->enqueue();
    // Other code here
}, 100);

By adding enqueueJs(true, ['jquery']) resolved this issue.
and it seems like this isn’t covered in the documentation as well.

Cheers!

1 Like

solve this via adding enqueueJs(true, ['jquery']) before enqueue()