You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an enhancement suggestion to update the following examples, currently using Vite v4, to use Vite v5 (see announcement Vite 5.0 is out! Nov 16, 2023):
Resolve Cypress feature request Support vite v5 for component testing cypress#28347. Without this enhancement to Cypress, npx cypress run --component does successfully run, however it outputs the following warnings:
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.
We detected that you have versions of dependencies that are not officially supported:
- `vite`. Expected ^2.0.0 || ^3.0.0 || ^4.0.0, found 5.0.0.
If you're experiencing problems, downgrade dependencies and restart Cypress.
Suggestion
This is an enhancement suggestion to update the following examples, currently using Vite
v4
, to use Vitev5
(see announcement Vite 5.0 is out! Nov 16, 2023):4.5.x
4.5.x
Reason
cypress-io/github-action
examples should show successful use with latest published version of VitePrerequisites
Component Testing example
examples/component-tests
Update @vitejs/plugin-react to minimum v4.2.0 to avoid peer dependency warning regarding Vite
v5
Rename examples/component-tests/vite.config.js to
vite.config.mjs
(see Deprecate CJS Node API)Resolve Cypress feature request Support vite v5 for component testing cypress#28347. Without this enhancement to Cypress,
npx cypress run --component
does successfully run, however it outputs the following warnings:E2E example
examples/wait-on-vite
There are no other prerequisites apart from updating Vite to minimum v5.0.0
The text was updated successfully, but these errors were encountered: