cypress-io / cypress-example-recipes

Various recipes for testing common scenarios with Cypress

Home Page:https://on.cypress.io/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Can't resolve 'node:buffer'

Genero-Jay opened this issue · 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 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.

"neat-csv": "5.1.0",

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.