UPDATE:
This error comes from the auto import of cy
from the date-fns library, which also has a cy
of it's own. I've just commented it out in my code, since I don't necessarily want to get rid of auto-importing.
For some reason, every now and then I will get an error in my cypress tests _locale.cy.visit is not a function
.
I've read some past posts on this and people say that removing the import { cy } from "date-fns/locale"
will also remove the error. However, when I edit the test, it will be auto-imported and the error will happen again every now and then.
Is there anyway to remove this permanently or a better work around then constantly removing it?|
Any tips or advice would be greatly appreciated!