Hi, I've been struggling with this error
Hi, I've been struggling with this error for several days, I don't know what to do. help please.
[Error: EMFILE: too many open files, open 'D:Работа\zovoo-admin.next\export-detail.json'] {
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: 'D:\Работа\zovoo-admin\.next\export-detail.json'
}
3 Replies
other-emerald•13mo ago
Hey @sem_5931, which ui library do you use and which version? In Next.js this might happen if you import a huge library with lots of exports (such as an icon library or a library like lodash etc.) To avoid this, you might need to update your imports to modular ones (like with subpaths)
wise-white•13mo ago
@aliemirs
"@ant-design/icons": "^5.0.1",
"@refinedev/antd": "^5.7.0",
"antd": "^5.0.5",
"next": "^13.0.6",
I didn't quite understand what needs to be updated, can you tell me where to look at the instructions or documentation?
other-emerald•13mo ago
You need to check for asterisk imports/exports from libraries probably. The issue is related with your project not to refine. You may want to check related issues in next.js 🤔
You may be having this due to bundler working on too many files and causing an overflow, this can be caused by faulty imports from large libraries