You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rogerprz I had the same problem, for me the solution was to explicitly import the isBetween plugin every time before using it in a file (like stated in the docs):
import isBetween from 'dayjs/plugin/isBetween'
dayjs.extend(isBetween)
I have isBetween, and all unit tests works, now I have add new dayjs.extend, then always not working; got TypeError: (0 , dayjs_1.default) is not a function or TypeError: dayjs_1.default.extend is not a function error;
Describe the bug
Similar to this #475
Expected behavior
For my tests to pass and not consider dayjs to not be a function.
Information
The text was updated successfully, but these errors were encountered: