cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.09k stars 3.19k forks source link

Latest cypress fails with a dummy test generated via the UI interface #30207

Open JuliusKoronciCH opened 2 months ago

JuliusKoronciCH commented 2 months ago

Current behavior

I installed Cypress and followed the tutorial. After I created a example test and tried to run it the entire thing fails with:

Error: Webpack Compilation Error
Module build failed: UnhandledSchemeError: Reading from "node:process" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

I am running node v22 but even after installing node process I am getting a lot of other issues

Desired behavior

The guide works and I can start writing tests

Test code to reproduce

describe('template spec', () => {
  it('passes', () => {
    cy.visit('https://example.cypress.io')
  })
})

Cypress Version

13.14.1

Node version

v22.4.0

Operating System

macOS 14.6.1

Debug Logs

No response

Other

No response

jennifer-shehane commented 2 months ago

@JuliusKoronciCH Do you have anything in your codebase with a node:path reference? This error seems to be related to that.

JuliusKoronciCH commented 2 months ago

Hi @jennifer-shehane nope I dont, it's just a plain empty generated cypress project.