Skip to content

Cluster.fork() is not a function #42887

Closed
@johnbabu021

Description

@johnbabu021

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clusterIssues and PRs related to the cluster subsystem.docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions