eduolalo / moment-business-days

This is a momentJS plugin that allows you to use only business days (Monday to Friday)
MIT License
242 stars 67 forks source link

moment-business-days not supporting nuxt3. Kindly assist us. #110

Open vinothkbest opened 1 year ago

vinothkbest commented 1 year ago

Screenshot from 2023-08-31 19-40-27

vinothkbest commented 1 year ago

I configured like below. It works in "npm run dev" but error "npm run build". defineNuxtConfig({ vite: { optimizeDeps:{
esbuildOptions:{ plugins:[ esbuildCommonjs(['moment-business-days']) ] } }, build: { modulePreload: { polyfill: true, } } } })

mcdado commented 1 year ago

I'm sorry, I have no experience with Nuxt so I wouldn't know where to start to assist you. I hope you can find a solution and share it here.

vinothkbest commented 1 year ago

No solution still

vinothkbest commented 1 year ago

When I use the code as in this repo, It works! I used the below snippet to set locale. New error is "momentBusinessDays.locale is not a function". What relevant function will be used for the below

momentBusinessDays.locale('us', { workingWeekdays: [1, 2, 3, 4, 5] })

mcdado commented 1 year ago

I think you need to use updateLocale method.

vinothkbest commented 1 year ago

The latest 1.3.0 is not published. When will publish this ?

vinothkbest commented 8 months ago

Kindly release new version boss

vinothkbest commented 5 months ago

Hi sir, did you release this GitHub version in the npm?. It would be very helpful.