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

(bug) crypto.randomBytes is not a function #229

Open
vishallanke opened this issue Jan 3, 2023 · 0 comments
Open

(bug) crypto.randomBytes is not a function #229

vishallanke opened this issue Jan 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vishallanke
Copy link

Node version 17. Cypress 9.5. I am getting below error.

The following error originated from your test code, not from Cypress.

  > crypto.randomBytes is not a function

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Cypress could not associate this error to any specific test.

We dynamically generated a new test to display this failure.

at createToken ([webpack:///./node_modules/cypress-plugin-snapshots/src/config.js:6:1](http://localhost:59402/__/#))
    at ./node_modules/cypress-plugin-snapshots/src/config.js ([webpack:///./node_modules/cypress-plugin-snapshots/src/config.js:49:1](http://localhost:59402/__/#))
    at __webpack_require__ ([webpack:///webpack/bootstrap:19:1](http://localhost:59402/__/#))
    at ./node_modules/cypress-plugin-snapshots/src/ui.js ([webpack:///./node_modules/cypress-plugin-snapshots/src/ui.js:2:38](http://localhost:59402/__/#))
    at __webpack_require__ ([webpack:///webpack/bootstrap:19:1](http://localhost:59402/__/#))
@vishallanke vishallanke added the bug Something isn't working label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants