-
Notifications
You must be signed in to change notification settings - Fork 67
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
Cannot import moment-business-days #111
Comments
Did you ever figure out how to fix it? |
I fixed it by adding the following line to vite.config.js: like this: (you can ignore the rest)
|
This solution didn't work for me:
Does anyone have any idea how this can be fixed in a better way? Environment:
|
I haven't tried the suggested fix, I decided to migrate to Luxon instead. |
Yep, that is what I did as well
…On Mon, Apr 22, 2024, 1:10 PM Kheang Hok Chin ***@***.***> wrote:
This solution didn't work for me:
resolve: {mainFields: []},
Does anyone have any idea how this can be fixed in a better way?
Environment:
1. vite *5.2.9*
2. @originjs/vite-plugin-commonjs *1.0.3*
3. @vitejs/plugin-vue *5.0.4*
I haven't tried the suggested fix, I decided to migrate to Luxon instead.
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPUZ7OTGWLBDLNKQGZ5PTTY6TO3BAVCNFSM6AAAAABABEXIW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGAYDKNZTGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I think the issue is that the latest published version still uses |
Importing from the master branch directly did work as suggested above. |
app.js:56 TypeError: Cannot set properties of undefined (setting 'isHoliday')
at node_modules/moment-business-days/index.js (index.js:7:11)
at __require2 (chunk-DA74IYYC.js?v=31bda342:17:50)
at index.js:248:1
The text was updated successfully, but these errors were encountered: