cypress-example-recipes icon indicating copy to clipboard operation
cypress-example-recipes copied to clipboard

Error: Can't resolve 'node:buffer'

Open Genero-Jay opened this issue 3 years ago • 5 comments

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 avatar Oct 19 '21 20:10 Genero-Jay

@Genero-Jay I'm also getting this issue, did you find a way to resolve it?

samstefan avatar Feb 03 '22 10:02 samstefan

@Genero-Jay Same issue here

thomaswong66 avatar Feb 05 '22 01:02 thomaswong66

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

stychu avatar Mar 01 '22 13:03 stychu

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.

minesh-patel-cko avatar Aug 16 '22 16:08 minesh-patel-cko

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.

vonkanehoffen avatar Feb 27 '23 11:02 vonkanehoffen