umijs / mako

An extremely fast, production-grade web bundler based on Rust.
https://makojs.dev
MIT License
1.86k stars 71 forks source link

[QA]: how to fix `Error watching files: Too many open files (os error 24)` #1683

Open DYC-zhanglin opened 1 day ago

DYC-zhanglin commented 1 day ago

image

https://github.com/tachybase/tachybase 项目中,我们原本 umi 使用的场景没有那么复杂,所以期望能平滑切换到 mako,实际上 build 的过程很顺利,但是开发过程遇到了这个问题,而且不知道怎么解决这个问题。

In the https://github.com/tachybase/tachybase project, our original use of umi wasn't very complex, so we expected a smooth transition to mako. The build process actually went smoothly, but we encountered this issue during development and haven't figured out how to resolve it.

复现方式 Steps to reproduce

git clone https://github.com/tachybase/tachybase.git
cd tachybase
git checkout feat/migrate-to-mako
pnpm install
pnpm dev --client
DYC-zhanglin commented 1 day ago

umi@4.3.31 mako@0.9.5

Jinbao1001 commented 1 day ago

The lockfile is broken?

ERR_PNPM_UNEXPECTED_PKG_CONTENT_IN_STORE  Package name mismatch found while reading {"integrity":"sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==","tarball":"https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz"} from the store.
DYC-zhanglin commented 1 day ago

The lockfile appears to be all good on my side.

image

By the way, pnpm's version is 9.12.2

Jinbao1001 commented 10 hours ago

定位到问题了, 晚点修复下. 不过我本地跑不起来你们项目, 到时候麻烦你验证下哦 @DYC-zhanglin

DYC-zhanglin commented 10 hours ago

定位到问题了, 晚点修复下. 不过我本地跑不起来你们项目, 到时候麻烦你验证下哦 @DYC-zhanglin

好的,没问题,辛苦了