It has come to my attention that the moment JS library is experiencing a known issue when attempting to require ./locale. Unfortunately, the problem remains unresolved and it is recommended to seek out solutions from various tickets. While I am open to implementing any workarounds, I must admit that I am unfamiliar with npm, webpack, and related tools. I have no clue how to incorporate these changes into my Laravel webpack setup.
You can find more information about the issue here.
I am attempting to add moment to a file named app.js, alongside other essential libraries such as jquery, jquery ui, and semantic ui. I was able to execute npm without encountering any errors using "require('moment').default;", but moment was still not defined on the page.
If anyone is willing to assist me and provide some guidance, I would greatly appreciate it. Thank you.