egg npm run dev in docker failed

vulvrdjw  于 2个月前  发布在  Docker
关注(0)|答案(2)|浏览(54)

Your detail info about the Bug:

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

Reproduction Repo

npm run dev

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

bf1o4zei

bf1o4zei1#

主进程才有 cluster.fork() 方法,cluster-reload包需要加个判断

wwtsj6pe

wwtsj6pe2#

@cuiyongjian 可以提供一个能复现的最小代码库吗?

相关问题