I upgraded next.js to 14.10 and some other packages, my app is not building, when i try to build i got this
$ env-cmd -f ./.env.dev next build
▲ Next.js 14.1.0
Environments: .env.local
Skipping linting
✓ Checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
✓ Collecting page data
✓ Generating static pages (176/176)
And then this appears:
[Error: EMFILE: too many open files, open 'path\node_modules\next\dist\server\base-server.js'] {
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: 'path\node_modules\next\dist\server\base-server.js'
}
I use windows and have no idea how to fix it, i tried to removed some pages and then it works, but it doesn't matter which page, can anyone help me with this?