-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unable to use Cypress.require within cy.origin #25885
Comments
Sorry to see you're encountering an issue using |
Thank you for the fast reply and for forwarding the issue to the team. I am glad to be able to contribute with a bug report on this recent version as I have a few use cases for this particular feature. |
Have the same situation.Could be great to have answer for this) |
I'm seeing the same problem in the 12.6.0 |
Getting this error since updating Cypress to 12.6.0, previously using require inside cy.origin was working, but now it forces an error, because Cypress.require got reinstated in 12.6.0. Reverting back to 12.5.* should be the only solution for now. |
Is there an estimate when this will be fixed? Custom commands are unusable for us right now. |
Just encountered this as well. 12.7 |
I have this bug as well, both in 12.6 and in 12.7 unfortunately. Exactly the same situation as described |
I'm meeting the same issue with cypress 12.7.0 |
same issue with cypress 12.7.0, (adding experimentalOriginDependencies: true is enough) |
👍 for @chrisbreiding with #25931 |
This should be fixed by #25931 and out with the next release. Thanks for bearing with us as we work out the kinks in this experimental feature. |
Thanks @chrisbreiding! Any idea on when the next release is? |
Barring any unforeseen circumstances, the next release should be on March 14th. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
I am trying to use
Cypress.require
which was released with 12.6.0 to be able to import external dependencies within acy.origin
callback. I am using cypress within an angular project using typescript 4.7.4.According to the documentation this should work with any typescript module:
https://docs.cypress.io/api/cypress-api/require
As soon as I start the test suite including a
Cypress.require
it immediately fails with:Error: Cannot find module 'typescript'
Desired behavior
Absence of current behavior.
Cypress.require
should work as documented.Test code to reproduce
Cypress Version
12.6.0
Node version
16.18.0
Operating System
macOS 12.6.1
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: