Skip to content

Conversation

alan-agius4
Copy link
Collaborator

Previously, Vite prebundled dependencies were stored in a shared directory across all projects, which caused the _metadata.json files to be overwritten. This resulted in undefined behavior, such as re-optimizing dependencies on each run when multiple projects were present in the workspace. Additionally, it introduced conflicts when running multiple ng serve processes simultaneously.

Closes #28536

Previously, Vite prebundled dependencies were stored in a shared directory across all projects, which caused the `_metadata.json` files to be overwritten. This resulted in undefined behavior, such as re-optimizing dependencies on each run when multiple projects were present in the workspace. Additionally, it introduced conflicts when running multiple `ng serve` processes simultaneously.

Closes angular#28536
@alan-agius4 alan-agius4 marked this pull request as ready for review October 1, 2024 13:11
@alan-agius4 alan-agius4 requested review from clydin October 1, 2024 13:11
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Oct 1, 2024
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 1, 2024
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 1, 2024
@alan-agius4 alan-agius4 removed the request for review from clydin October 1, 2024 16:18
@alan-agius4 alan-agius4 merged commit c0b76e3 into angular:main Oct 1, 2024
35 checks passed
@alan-agius4 alan-agius4 deleted the projects-vite-cache branch October 1, 2024 16:18
@alan-agius4
Copy link
Collaborator Author

The changes were merged into the following branches: main, 18.2.x

@marob
Copy link

marob commented Oct 3, 2024

@alan-agius4 Is it possible to backport to 17?

@alan-agius4
Copy link
Collaborator Author

@marob, no as this is not a security fix or a newly introduced bug. See: https://angular.dev/reference/releases#lts-fixes

marob added a commit to ProgrammeVitam/vitam-ui that referenced this pull request Oct 3, 2024
As we can't upgrade to Angular 18 for now, here is a backport of angular/angular-cli#28540 to fix "504 Outdated Optimize Dep"
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Challenges when running multi-project apps simultaneously resulting in 504 Outdated Optimize Dep errors

3 participants