Open MikeMcC399 opened 1 month ago
Related to: https://github.com/cypress-io/cypress/issues/28373 Also still seeing this warning when running scripts.
@codyjohnsonfb
git clone https://github.com/cypress-io/cypress
cd cypress
n auto
npm install yarn@latest -g
yarn
cd npm/vite-dev-server
yarn test
yarn test
yarn run v1.22.22
$ yarn test-unit
$ mocha -r ts-node/register/transpile-only --config ./test/.mocharc.js
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
Current behavior
Cypress Changelog 13.13.0 states "Added support for vite v5 to
@cypress/vite-dev-server
."Running Component Testing with Cypress
13.10.0
and vite v5 results in the message:Desired behavior
Running Component Testing with Cypress
13.10.0
and vite v5 should not show any deprecation message related to Vite's Node API.Test code to reproduce
See https://github.com/MikeMcC399/github-action/tree/test/vite-v5-ct/examples/component-tests
To run, use the following:
For debug info, repeat with:
Cypress Version
First reported on version
13.10.0
Still reproducible on version13.11.0
Node version
v20.13.1
v20.14.0
Operating System
Ubuntu
22.04.4
LTSDebug Logs
Other
Installed npm module versions