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
I initially tried to add typeof require !== "undefined" but vite transforms it making the check useless.
I'm not sure what is a good solution, for now on my side I simply patched away the require.resolve call and use the hardcoded path
The text was updated successfully, but these errors were encountered:
require.resolve
is only supported by webpack. When trying to migrate to Vite preprocessor with cypress-viteI hit error that
require
doesn't exists.cypress-react-selector/src/resqInjector.js
Lines 8 to 11 in 1c55294
I initially tried to add
typeof require !== "undefined"
but vite transforms it making the check useless.I'm not sure what is a good solution, for now on my side I simply patched away the
require.resolve
call and use the hardcoded pathThe text was updated successfully, but these errors were encountered: