Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/build): always provide Vite client helpers with development server #29570

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Feb 4, 2025

In addition to the WebSocket code, the Vite client module contains helper functions which may be injected into modules at request time. These helpers are required for certain behavior to function. Previously, when --no-live-reload was used, these helpers may not have been available which led to runtime errors. These runtime errors will no longer occur. However, the browser console will now log that the Vite client cannot connect to the development server WebSocket. This is expected in this case since live reload functionality was disabled and the server side is intentionally not available.

Closes #29556

@clydin clydin added the target: patch This PR is targeted for the next patch release label Feb 4, 2025
…ent server

In addition to the WebSocket code, the Vite client module contains helper
functions which may be injected into modules at request time. These helpers
are required for certain behavior to function. Previously, when `--no-live-reload`
was used, these helpers may not have been available which led to runtime
errors. These runtime errors will no longer occur. However, the browser console
will now log that the Vite client cannot connect to the development server
WebSocket. This is expected in this case since live reload functionality
was disabled and the server side is intentionally not available.
@clydin clydin force-pushed the dev/vite-client-helpers branch from e474235 to 73cef20 Compare February 10, 2025 16:35
@clydin clydin requested a review from alan-agius4 February 10, 2025 17:00
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 10, 2025
@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 Feb 10, 2025
@dgp1130 dgp1130 merged commit beefed8 into angular:main Feb 10, 2025
32 checks passed
@dgp1130
Copy link
Collaborator

dgp1130 commented Feb 10, 2025

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

@clydin clydin deleted the dev/vite-client-helpers branch February 10, 2025 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
3 participants