b***@qq.com
b***@qq.com
  • 发布:2025-04-02 13:56
  • 更新:2025-04-02 13:56
  • 阅读:54

【报Bug】运行到小程序报错EMFILE: too many open files, open

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 4.57

手机系统: Android

手机系统版本号: Android 15

手机厂商: 华为

手机机型: p40 pro

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

13:18:00.540 [plugin:commonjs--resolver] There was an error during the build:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\src\package.json'
13:18:00.540 Additionally, handling the error in the 'buildEnd' hook caused the following error:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\typings\auto-imports.d.ts'
13:18:12.478
13:18:12.478 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html
13:18:12.478

操作步骤:

13:18:00.540 [plugin:commonjs--resolver] There was an error during the build:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\src\package.json'
13:18:00.540 Additionally, handling the error in the 'buildEnd' hook caused the following error:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\typings\auto-imports.d.ts'
13:18:12.478
13:18:12.478 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html
13:18:12.478

预期结果:

13:18:00.540 [plugin:commonjs--resolver] There was an error during the build:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\src\package.json'
13:18:00.540 Additionally, handling the error in the 'buildEnd' hook caused the following error:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\typings\auto-imports.d.ts'
13:18:12.478
13:18:12.478 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html
13:18:12.478

实际结果:

13:18:00.540 [plugin:commonjs--resolver] There was an error during the build:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\src\package.json'
13:18:00.540 Additionally, handling the error in the 'buildEnd' hook caused the following error:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\typings\auto-imports.d.ts'
13:18:12.478
13:18:12.478 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html
13:18:12.478

bug描述:

13:18:00.540 [plugin:commonjs--resolver] There was an error during the build:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\src\package.json'
13:18:00.540 Additionally, handling the error in the 'buildEnd' hook caused the following error:
13:18:00.540 EMFILE: too many open files, open 'D:\baiyajin-code\zsff-cli-vue3-vite6-unocss\typings\auto-imports.d.ts'
13:18:12.478
13:18:12.478 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html
13:18:12.478

2025-04-02 13:56 负责人:无 分享
已邀请:

要回复问题请先登录注册