编译器中运行项目到app模拟器中,报错,运行失败
- 发布:2022-04-26 17:31
- 更新:2023-03-15 13:15
- 阅读:1044
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows10
HBuilderX版本号: 3.4.7
操作步骤:
预期结果:
正常运行项目
正常运行项目
实际结果:
编译器报错,项目运行失败
编译器报错,项目运行失败
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)