TypeError: __vite_ssr_import_0__ is not a function
on dayjs()
#2484
-
I am switching this project from Jest to Vitest. The tests for
This is a small project and don't use Vite. I found that all the other discussions were mock-related, and I didn't use mock. The relevant part is about the date or time, I used dayjs. |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Dec 11, 2022
Replies: 1 comment
-
This should answer your question: #1993 TLDR: Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bobz25
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should answer your question: #1993
TLDR:
Use
import dayjs from 'dayjs
instead ofimport * as dayjs