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.fork() is not a function #42887

Closed
johnbabu021 opened this issue Apr 27, 2022 · 1 comment · Fixed by #42889
Closed

Cluster.fork() is not a function #42887

johnbabu021 opened this issue Apr 27, 2022 · 1 comment · Fixed by #42889
Labels
cluster Issues and PRs related to the cluster subsystem. doc Issues and PRs related to the documentations.

Comments

@johnbabu021
Copy link

Affected URL(s)

https://nodejs.org/dist/latest-v16.x/docs/api/cluster.html#event-exit

Description of the problem

I have rewrite The program as part of learning And caused error with the code on creating a worker with cluster
But doesn't have errors on the previous sections of cluster that uses cluster.fork() But that was used inside the cluster.isPrimary if block.After i have copied the code same error throws again (Only in the described section)
Screenshot from 2022-04-27 21-07-59

@johnbabu021 johnbabu021 added the doc Issues and PRs related to the documentations. label Apr 27, 2022
@VoltrexKeyva VoltrexKeyva added the cluster Issues and PRs related to the cluster subsystem. label Apr 27, 2022
@akaLittleGrass
Copy link

May I ask what JS code theme do you use

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. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants