2***@qq.com
2***@qq.com
  • 发布:2019-02-28 17:47
  • 更新:2019-02-28 18:08
  • 阅读:4139

-4058的错误,之前是可以的不知道为什么现在不行了

分类:uni-app

[HBuilder] 17:38:13.372 项目 'myuni' 开始编译...
[HBuilder] 17:38:25.786 { Error: ENOENT: no such file or directory, open 'E:\vuetest\myuni\unpackage\dist\build.tmp\app-plus\app.json'
[HBuilder] 17:38:25.786 at Object.fs.openSync (fs.js:646:18)
[HBuilder] 17:38:25.793 at Object.fs.readFileSync (fs.js:551:33)
[HBuilder] 17:38:25.794 at parseConfig (E:\HBuilderX\plugins\weapp-tools\lib\index.js:1:4187)
[HBuilder] 17:38:25.801 at index (E:\HBuilderX\plugins\weapp-tools\lib\index.js:1:12473)
[HBuilder] 17:38:25.807 at Promise (E:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:17:11)
[HBuilder] 17:38:25.816 at new Promise (<anonymous>)
[HBuilder] 17:38:25.816 at compiler.hooks.done.tapPromise.compilation (E:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:12:14)
[HBuilder] 17:38:25.823 at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:17:17)
[HBuilder] 17:38:25.831 at AsyncSeriesHook.lazyCompileHook (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
[HBuilder] 17:38:25.839 at onCompiled (E:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:228:21)
[HBuilder] 17:38:25.847 at hooks.afterCompile.callAsync.err (E:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:556:14)
[HBuilder] 17:38:25.855 at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:6:1)
[HBuilder] 17:38:25.864 at AsyncSeriesHook.lazyCompileHook (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
[HBuilder] 17:38:25.871 at compilation.seal.err (E:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:553:30)
[HBuilder] 17:38:25.880 at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:6:1)
[HBuilder] 17:38:25.887 at AsyncSeriesHook.lazyCompileHook (E:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
[HBuilder] 17:38:25.895 errno: -4058,
[HBuilder] 17:38:25.903 code: 'ENOENT',
[HBuilder] 17:38:25.904 syscall: 'open',
[HBuilder] 17:38:25.911 path: 'E:\vuetest\myuni\unpackage\dist\build\.tmp\app-plus\app.json' }
[HBuilder] 17:38:25.912 [ERROR] 读取app.json失败...
[HBuilder] 17:38:25.919 ENOENT: no such file or directory, copyfile 'E:\vuetest\myuni\unpackage\dist\build.tmp\app-plus\manifest.json' -> 'E:\vuetest\myuni\unpackage\dist\build\app-plus\manifest.json'
这是具体报错信息。
下面的图片是打包失败的时候这个app-plus下面没有任何文件。

2019-02-28 17:47 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

你运行到iphone、android真机上,看报错吗

  • 2***@qq.com (作者)

    运行真机是可以的,我找到原因了,我上传了启动app图标配置,然后就一直打包不成功了,即使我删除了也不行了,需要重新建个项目,把我代码复制进去才可以打包后才能打包成功。

    1.可能图片不是1024X1024的大小(具体不知道),

    2.如果是1的原因,请在打包之前提示,而且如果有一次打包不成功后,即使换了图片和不设置图标,再次打包,也会失败。

    2019-02-28 18:52

该问题目前已经被锁定, 无法添加新回复