Skip to content

fix(angular): install @angular/build when using vitest test runner#31169

Merged
leosvelperez merged 1 commit intomasterfrom
angular/install-ng-build-for-analog
May 13, 2025
Merged

fix(angular): install @angular/build when using vitest test runner#31169
leosvelperez merged 1 commit intomasterfrom
angular/install-ng-build-for-analog

Conversation

@leosvelperez
Copy link
Copy Markdown
Member

Current Behavior

The application and library generators do not install the @angular/build package when using the vitest test runner. This can cause resolution issues depending on the package manager because the package is a peer dependency of the @analogjs/vite-plugin-angular package.

Expected Behavior

The application and library generators should install the @angular/build package when using the vitest test runner.

Related Issue(s)

Fixes #30646

@leosvelperez leosvelperez self-assigned this May 12, 2025
@leosvelperez leosvelperez requested a review from a team as a code owner May 12, 2025 11:41
@leosvelperez leosvelperez requested a review from Coly010 May 12, 2025 11:41
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 12, 2025 11:52am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 12, 2025

View your CI Pipeline Execution ↗ for commit ef97855.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 27m 7s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 15s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 33s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-12 12:21:41 UTC

@leosvelperez leosvelperez force-pushed the angular/install-ng-build-for-analog branch from 5f53b8a to ef97855 Compare May 12, 2025 11:50
@leosvelperez leosvelperez merged commit e1c0be3 into master May 13, 2025
6 checks passed
@leosvelperez leosvelperez deleted the angular/install-ng-build-for-analog branch May 13, 2025 11:22
FrozenPandaz pushed a commit that referenced this pull request May 16, 2025
…31169)

## Current Behavior

The application and library generators do not install the
`@angular/build` package when using the `vitest` test runner. This can
cause resolution issues depending on the package manager because the
package is a peer dependency of the `@analogjs/vite-plugin-angular`
package.

## Expected Behavior

The application and library generators should install the
`@angular/build` package when using the `vitest` test runner.

## Related Issue(s)

Fixes #30646

(cherry picked from commit e1c0be3)
@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 May 19, 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.

nx/vitest@^20.7: Cannot find module '@angular/build/private' when using yarn

2 participants