Skip to content

fix(angular): install compatible vitest version for angular projects#33858

Merged
leosvelperez merged 1 commit into
masterfrom
gh-33770
Dec 15, 2025
Merged

fix(angular): install compatible vitest version for angular projects#33858
leosvelperez merged 1 commit into
masterfrom
gh-33770

Conversation

@leosvelperez

Copy link
Copy Markdown
Member

Current Behavior

When creating a new Nx workspace with Angular v20 and selecting Vitest as the unit test runner, the installation fails with an npm peer dependency conflict:

npm error ERESOLVE could not resolve
npm error peerOptional vitest@"^3.1.1" from @angular/build@20.3.13
npm error Found: vitest@4.0.15

Expected Behavior

Workspace creation completes successfully when selecting Angular with Vitest as the unit test runner.

Related Issue(s)

Fixes #33770

@leosvelperez leosvelperez requested a review from Coly010 December 15, 2025 10:10
@leosvelperez leosvelperez self-assigned this Dec 15, 2025
@leosvelperez leosvelperez requested review from a team as code owners December 15, 2025 10:10
@vercel

vercel Bot commented Dec 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Dec 15, 2025 10:13am

@netlify

netlify Bot commented Dec 15, 2025

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit c683c3e
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/693fde84e963430008533e1a
😎 Deploy Preview https://deploy-preview-33858--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit c683c3e

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 25m 35s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 30s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-15 10:40:41 UTC

@leosvelperez leosvelperez merged commit b6051f0 into master Dec 15, 2025
20 checks passed
@leosvelperez leosvelperez deleted the gh-33770 branch December 15, 2025 10:47
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency conflict between vitest@4 and @angular/build@20.3.13 in NX v22.2.0

2 participants