Moments.js Javascript error on all pages except dashboard

I noticed Moments.js is loaded on all pages and triggers a javascript error.

On the Dashboard page, there is no error since Chartjs does gets loaded

I believe Moments.js is loaded by mistake on pages without charts.

Hi,

We checked this issue from our side, and it seems okay. Please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org.