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(core): check if socketMessenger is null before using #18116

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

Cammisuli
Copy link
Member

Current Behavior

In certain scenarios in Nx Console, the daemon gets reset while a request was about to be sent through with the socketmessenger. When the daemon resets, SocketMessenger is set to null, and we get TypeError: Cannot read properties of null ("sendMessage")

Expected Behavior

We now use the ? operator to make sure we don't call sendMessage on a null messenger

Related Issue(s)

Fixes #

@Cammisuli Cammisuli requested a review from a team as a code owner July 14, 2023 12:02
@Cammisuli Cammisuli requested a review from FrozenPandaz July 14, 2023 12:02
@vercel
Copy link

vercel bot commented Jul 14, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2023 10:06pm

packages/nx/src/daemon/client/client.ts Outdated Show resolved Hide resolved
packages/nx/src/daemon/client/client.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

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 Jul 29, 2023
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.

2 participants