cypress-example-recipes
cypress-example-recipes copied to clipboard
Error: Can't resolve 'node:buffer'
I am trying to follow the examples, but I get an error right away:
Error: Webpack Compilation Error
./node_modules/neat-csv/index.js
Module not found: Error: Can't resolve 'node:buffer'
Any suggestions? Am I missing a requirement?
@Genero-Jay I'm also getting this issue, did you find a way to resolve it?
@Genero-Jay Same issue here
Make sure u use same version of neat-csv as in the example. Seems like the newest version of neat-csv is breaking things and not working anymore in cypress.
https://github.com/cypress-io/cypress-example-recipes/blob/bb83980a4757a738207b667795ae739d86b0cf9a/package.json#L136
i am having same issue. ReferenceError The following error originated from your test code, not from Cypress.
Buffer is not defined
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.
Had this issue and it's fine with neat-csv
pinned to 5.1.0
like @stychu suggested. Guess it's some node version thing.