On further investigation it seems that we had a Sparkling child theme. The wp_footer() call was missing in the footer.php file as compared to the original Sparkling theme footer.php file, and it was working until the upgrade to wordpress 5.
Hi @kimabaghdasaryan,
we’re using Sparkling Version: 2.4.4.