Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vinothkbest opened this issue Aug 31, 2023 · 8 comments
Open

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

vinothkbest opened this issue Aug 31, 2023 · 8 comments

Comments

@vinothkbest
Copy link

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

@vinothkbest
Copy link
Author

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
Copy link
Collaborator

mcdado commented Aug 31, 2023

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
Copy link
Author

No solution still

@vinothkbest
Copy link
Author

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
Copy link
Collaborator

mcdado commented Sep 6, 2023

I think you need to use updateLocale method.

@vinothkbest
Copy link
Author

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

@vinothkbest
Copy link
Author

Kindly release new version boss

@vinothkbest
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants