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

t is not a function when running in SSR environment #32

Open
ChavaSobreyra opened this issue Sep 11, 2022 · 1 comment
Open

t is not a function when running in SSR environment #32

ChavaSobreyra opened this issue Sep 11, 2022 · 1 comment

Comments

@ChavaSobreyra
Copy link

ChavaSobreyra commented Sep 11, 2022

I'm getting a t is not a function error when running dayjs-business-days in a nuxt3 ssr environment. I do not get this error when running dayjs as client only.

@stheine
Copy link

stheine commented Jan 25, 2023

try

import dayjsBusinessDaysPkg from 'dayjs-business-days';
const dayjsBusinessDays = dayjsBusinessDaysPkg.default;

dayjs.extend(dayjsBusinessDays);

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