Hey all, I'm at a complete deadstop in migrating m...
# help
m
Hey all, I'm at a complete deadstop in migrating my project from Vue 2 to 3, which I swapped from vue-cli to Vite. As far as my app functionality, perfect; however, I CANNOT get Cypress to load my hundreds of test files because of "webpack compilation error"'s. I read that Cypress compiles its e2e tests with Webpack by default, but it's throwing errors for my non-Cypress javascript files' use of
import.meta.env
because
import
should be used at the top-level and for having comments as the first line in some Vue files. I've been told Cypress doesn't compile your actual application, it just hits it at localhost based on it being running locally; but these errors don't make much sense to me since my local dev server is running my application without error. I know it's a mix of a Cypress and Vite question, but I'd really appreciate anyone who has Vite and Cypress running for e2e tests in their application.