Require MomentJS But Can Not Use

Hi, I read the doc here to require momentjs link

But when I check the console, it throw me the error. I also added window.define = null;
Is there any problem with my code? Thanks

Dear @minh_cuong_le,
No, the code is fine, I just don't think it's supported in the current version of SharePoint 2019 Forms, I think this currently only works in SharePoint Online.

This should be fixed in the next big update around June/July 2021.