https://cypress.io logo
Hi all! Trying to upgrade from cypress 8 to cypre...
# e2e-testing
o
Hi all! Trying to upgrade from cypress 8 to cypress 10. Hoping to maintain compatibility with
@vue/cli-plugin-e2e-cypress
. Unfortunately it looks like something changed with
package.json
between cypress 8 and 10. I am not the best at understanding
package.json
specifics, but I've observed that cypress 8 did not have an
exports
section in its
package.json
whereas cypress 10 does have that
exports
section. A little spelunking in the
@vue/cli-plugin-e2e-cypress
source code indicates it is depending on
@vue/cli-shared-utils
's
modules
package, which functions to discover the filesystem location of the cypress executable with cypress 8, but does not in cypress 10. Instead, with cypress 10 it swallows this exception:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './bin/cypress' is not defined by "exports" in /Users/.../repos/<my project>/node_modules/cypress/package.json".