Cypress 14.0.0 on macOS incorrectly resolves entry path – “Cannot find module …/Contents/MacOS/Contents/Resources/app/index.js” #31016
Labels
stage: needs information
Not enough info to reproduce the issue
Summary:
When running Cypress 14.0.0 on macOS, Cypress attempts to spawn a process using an incorrect internal path. Instead of loading the entry point from
…/Cypress.app/Contents/Resources/app/index.js
it erroneously appends an extra Contents/MacOS segment (i.e.,
…/Cypress.app/Contents/MacOS/Contents/Resources/app/index.js
This causes Node to throw a “Cannot find module” error.
Steps to Reproduce:
npx cypress run --project front
and then fails with:
Current Behavior:
/Users/<username>/Library/Caches/Cypress/14.0.0/Cypress.app/Contents/Resources/app/index.js
Expected Behavior:
Cypress should either:
…/Cypress.app/Contents/Resources/app/index.js
Environment:
Reproducible Demo:
A minimal reproduction can be set up by:
while Cypress is trying to load from:
Additional Context / Attempts:
This failed due to macOS’s SIP (System Integrity Protection) blocking modifications in the app bundle.
Request:
Please confirm whether this is a known packaging regression in Cypress 14.0.0 on macOS. Is there a configuration option or recommended workaround (other than downgrading) that allows Cypress to resolve its internal path correctly without modifying protected files? Any guidance or plans to address this in a future release would be greatly appreciated.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: