Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress v11.0.0 Broken with experimentalSessionAndOrigin: true #24611

Closed
stychu opened this issue Nov 9, 2022 · 4 comments · Fixed by #24630
Closed

Cypress v11.0.0 Broken with experimentalSessionAndOrigin: true #24611

stychu opened this issue Nov 9, 2022 · 4 comments · Fixed by #24630
Labels
type: regression A bug that didn't appear until a specific Cy version release

Comments

@stychu
Copy link

stychu commented Nov 9, 2022

Current behavior

I wanted to upgrade to cypress v11 from v10.4.0. After bumping the version Cypress is broken.
Figuring out whats wrong I found that the experimentalSessionAndOrigin: true leads to this error which prevents cypress from running the tests

When I disable experimentalSessionAndOrigin tests seem to work but obviously don't pass as I use session and origin

Error: Webpack Compilation Error
./cypress/tests/e2e/_userLogin.cy.ts
Module build failed (from /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@cypress/webpack-preprocessor/dist/lib/cross-origin-callback-loader.js):
Error: Cannot find module '/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@babel/parser/lib/index.js'. Please verify that the package.json has a valid "main" entry
    at Watching.handle [as handler] (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@cypress/webpack-preprocessor/dist/index.js:230:23)
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Watching.js:99:9
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/Hook.js:154:20)
    at Watching._done (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Watching.js:98:28)
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Watching.js:73:19
    at Compiler.emitRecords (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Compiler.js:499:39)
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Watching.js:54:20
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Compiler.js:485:14
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/Hook.js:154:20)
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Compiler.js:482:27
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/neo-async/async.js:2818:7
    at done (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/neo-async/async.js:3522:9)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/tapable/lib/Hook.js:154:20)
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/node_modules/webpack/lib/Compiler.js:464:33
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/graceful-fs/graceful-fs.js:143:16
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/graceful-fs/graceful-fs.js:143:16
    at /Users/..../Library/Caches/Cypress/11.0.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (fs.js:179:23)

experimentalSessionAndOrigin: true

Screenshot 2022-11-09 at 13 08 04

experimentalSessionAndOrigin: false

Screenshot 2022-11-09 at 13 08 16

Desired behavior

Cypress successfully runs the tests as normal

Test code to reproduce

....

Cypress Version

"cypress": "11.0.0"

Node version

v14.18.1

Operating System

macOS BigSur 11.7

Debug Logs

No response

Other

No response

@emilyrohrbough
Copy link
Member

We are actively investigating.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 10, 2022

The code for this is done in cypress-io/cypress#24630, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@mjhenkes
Copy link
Member

Released in 11.0.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v11.0.1, please open a new issue.

@karlhorky
Copy link
Contributor

karlhorky commented Nov 10, 2022

Thanks for the quick reaction and release @ryanthemanuel @emilyrohrbough @mjhenkes @ZachJW34 ! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A bug that didn't appear until a specific Cy version release
Projects
None yet
4 participants