We removed moment.js and use Day.js instead.
Migrate to Day.js
Update import moment to dayjs as below.
import moment from "moment";
import dayjs from "dayjs";
Also remove declare moment statement as below because it removed.
declare var moment: any;
Day.js that have the same apis like moment.js so you can use the like as below.