pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

[BUG] encounter EMFILE: too many open files error during building process

Open CodeAunt opened this issue 9 months ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Product

Trade

Current Behavior

✓ Linting and checking validity of types
✓ Creating an optimized production build
✓ Compiled successfully Collecting page data ..Datadog Browser SDK: Client Token is not configured, we will not send any data. Datadog Browser SDK: Client Token is not configured, we will not send any data. Datadog Browser SDK: Client Token is not configured, we will not send any data. Datadog Browser SDK: Client Token is not configured, we will not send any data. Datadog Browser SDK: Client Token is not configured, we will not send any data. Collecting page data ...Datadog Browser SDK: Client Token is not configured, we will not send any data. Datadog Browser SDK: Client Token is not configured, we will not send any data. ✓ Collecting page data
[Error: EMFILE: too many open files, open '/Users//pancake-frontend/apps/web/.next/server/chunks/quote-worker.js'] { errno: -24, code: 'EMFILE', syscall: 'open', path: '/Users//pancake-frontend/apps/web/.next/server/chunks/quote-worker.js' } Generating static pages (55/94) [ ]  ELIFECYCLE  Command failed with exit code 1.

Expected Behavior

Finish the building process

Steps To Reproduce

  1. using node 18.7(tried 20.7, 16.13) and the Environment below
  2. run pnpm i
  3. run pnpm build or cd apps/web and then run pnpm build

Environment

- Device: Macbook M1 Pro
- OS: MacOS Ventura 13.2.1
- Browser: *
- Wallet: *

Anything else?

Might related to Next.js #Issue 64066

CodeAunt avatar May 06 '24 15:05 CodeAunt