eggjs / eggjs/egg

npm run dev in docker failed

Open
#5,061 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
19k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

### Your detail info about the Bug:

1. 我在docker中运行eggjs的ts项目,会爆出cluster.fork is not a function的错误。但同样的项目在windows宿主机上是正常的。
2. 报错截图如下:
3.

### Reproduction Repo

npm run dev

![image](https://user-images.githubusercontent.com/3937196/201981522-e9844009-1068-46de-a43a-4ff055b308a1.png)

### Node Version

16.18.0

### Eggjs Version

2.6.1

### Plugin Name and its version

"egg-bin": "^4.15.0",

### Platform and its version

windows11 and wsl2 ubuntu and docker ubuntu

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.