小小菜76055421
小小菜76055421
  • 发布:2022-04-26 17:31
  • 更新:2023-03-15 13:15
  • 阅读:1044

【报Bug】HbuilderX运行到App端时,编译器报错,需要反复运行,才能成功

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

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

HBuilderX版本号: 3.4.7

操作步骤:

编译器中运行项目到app模拟器中,报错,运行失败

预期结果:

正常运行项目

实际结果:

编译器报错,项目运行失败

bug描述:

hbuilderx运行到app模拟器或者真机运行时,报错下:
error during build:
17:18:13.559 Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\Administrator\Desktop\app\xxx\xxx\unpackage\dist\dev\app-plus\pages'
17:18:13.560 at Object.rmdirSync (fs.js:850:3)
17:18:13.565 at emptyDir (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\fs.js:18:26)
17:18:13.569 at emptyOutDir (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-app-vite\dist\plugin\build.js:24:43)
17:18:13.574 at buildOptions (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-app-vite\dist\plugin\build.js:39:13)
17:18:13.577 at Object.config (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-app-vite\dist\plugin\index.js:16:49)
17:18:13.581 at resolveConfig (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:61175:33)
17:18:13.585 at processTicksAndRejections (internal/process/task_queues.js:97:5)
17:18:13.588 at async doBuild (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:39023:20)
17:18:13.591 at async build (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:39011:16)
17:18:13.595 at async buildApp (d:\Downloads\HBuilderX.3.3.13.20220314.full\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\build.js:94:24)

2022-04-26 17:31 负责人:无 分享
已邀请:
小小菜76055421

小小菜76055421 (作者)

打包自定义基座或者安心打包,都会报类似的错误,无非是报错的目录不同,运行时是dev,打包时是build

泡菜哥

泡菜哥

请问这个问题怎么解决的,今天碰到类似的问题。

泡菜哥

泡菜哥

请问这个问题怎么解决的,我也遇到这个问题,现在完全不知道问题在哪里

要回复问题请先登录注册