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

Cluster.isPrimary is undefined #40311

Closed
warlock1996 opened this issue Oct 4, 2021 · 4 comments
Closed

Cluster.isPrimary is undefined #40311

warlock1996 opened this issue Oct 4, 2021 · 4 comments
Labels
cluster Issues and PRs related to the cluster subsystem.

Comments

@warlock1996
Copy link
Contributor

Version

14.17.6

Platform

Windows

Subsystem

No response

What steps will reproduce the bug?

const cluster = require("cluster");

console.log(cluster.isPrimary) // undefined

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@richardlau
Copy link
Member

This was introduced in a semver-major PR (#36478) so hasn't been backported to Node.js 14.

@VoltrexKeyva VoltrexKeyva added the cluster Issues and PRs related to the cluster subsystem. label Oct 4, 2021
@warlock1996
Copy link
Contributor Author

warlock1996 commented Oct 4, 2021

okay, the documentation for v14.17.6 has this issue

@richardlau
Copy link
Member

Where are you seeing that? https://nodejs.org/dist/v14.17.6/docs/api/cluster.html doesn't list isPrimary, for example.

@warlock1996
Copy link
Contributor Author

oh sorry, it is correct for the link u provided, i was reading the latest 16.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cluster Issues and PRs related to the cluster subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants