cyl
cyl
  • 发布:2019-04-13 19:40
  • 更新:2019-07-21 19:27
  • 阅读:1712

【报Bug】1.9.0 APP打包 开启 "usingComponents":true 报错误是哪里的问题

分类:HBuilderX

详细问题描述

1.9.0 APP打包 开启 "usingComponents":true 后

  1. 报以下错误
    { Error: ENOENT: no such file or directory, open 'D:\cyl_ddk\unpackage\dist\build.tmp\app-plus\app.json'
    [HBuilder] 19:23:03.963 at Object.fs.openSync (fs.js:646:18)
    [HBuilder] 19:23:03.977 at Object.fs.readFileSync (fs.js:551:33)
    [HBuilder] 19:23:03.978 at parseConfig (D:\HBuilderX\plugins\weapp-tools\lib\index.js:1:4187)
    [HBuilder] 19:23:03.983 at index (D:\HBuilderX\plugins\weapp-tools\lib\index.js:1:13595)
    [HBuilder] 19:23:03.984 at Promise (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:17:11)
    [HBuilder] 19:23:03.990 at new Promise (<anonymous>)
    [HBuilder] 19:23:03.992 at compiler.hooks.done.tapPromise.compilation (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:12:14)
    [HBuilder] 19:23:03.997 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:17:17)
    [HBuilder] 19:23:04.002 at AsyncSeriesHook.lazyCompileHook (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
    [HBuilder] 19:23:04.007 at onCompiled (D:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:228:21)
    [HBuilder] 19:23:04.013 at hooks.afterCompile.callAsync.err (D:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:556:14)
    [HBuilder] 19:23:04.013 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:6:1)
    [HBuilder] 19:23:04.019 at AsyncSeriesHook.lazyCompileHook (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
    [HBuilder] 19:23:04.021 at compilation.seal.err (D:\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:553:30)
    [HBuilder] 19:23:04.024 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:6:1)
    [HBuilder] 19:23:04.029 at AsyncSeriesHook.lazyCompileHook (D:\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
    [HBuilder] 19:23:04.033 errno: -4058,
    [HBuilder] 19:23:04.037 code: 'ENOENT',
    [HBuilder] 19:23:04.041 syscall: 'open',
    [HBuilder] 19:23:04.041 path: 'D:\cyl_ddk\unpackage\dist\build\.tmp\app-plus\app.json' }
    [HBuilder] 19:23:04.046 [ERROR] 读取app.json失败...
    [HBuilder] 19:23:04.047 ENOENT: no such file or directory, copyfile 'D:\cyl_ddk\unpackage\dist\build.tmp\app-plus\manifest.json' -> 'D:\cyl_ddk\unpackage\dist\build\app-plus\manifest.json'
    [内容]

重现步骤

[步骤]
[结果]
[期望]
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]

IDE运行环境说明

[HBuilder 或 HBuilderX]
[IDE版本号]
[windows版本号]
[mac版本号]

uni-app运行环境说明

[运行端是h5或app或某个小程序]
[运行端版本号]

App运行环境说明

[Android版本号]
[iOS版本号]
[手机型号]
[模拟器型号]

附件

[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
[可重现代码片段]

联系方式

[QQ]

2019-04-13 19:40 负责人:无 分享
已邀请:
9***@qq.com

9***@qq.com - 90

我也一样,旧1、8好好的

t***@vip.qq.com

t***@vip.qq.com - tanranran

我也是

想写个HELLOWORLD 都写不了

上来就告诉我编译失败

t***@vip.qq.com

t***@vip.qq.com - tanranran

19:25:21.177 编译器版本:2.1.2,当前项目编译模式:自定义组件模式。编译模式差异见:https://ask.dcloud.net.cn/article/35843
19:25:24.241 SyntaxError: Unexpected token n in JSON at position 27
19:25:24.242 at JSON.parse (<anonymous>)
19:25:24.252 at parseConfig (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:4680)
19:25:24.267 at index (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/weapp-tools/lib/index.js:1:14614)
19:25:24.288 at Promise (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-app-plus-plugin/index.js:33:21)
19:25:24.305 at new Promise (<anonymous>)
19:25:24.318 at compiler.hooks.done.tapPromise.compilation (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-app-plus-plugin/index.js:12:20)
19:25:24.318 at AsyncSeriesHook.eval [as callAsync] (eval at create (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:17:17)
19:25:24.336 at AsyncSeriesHook.lazyCompileHook (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/Hook.js:154:20)
19:25:24.353 at Watching._done (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/Watching.js:97:28)
19:25:24.354 at compiler.emitRecords.err (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/Watching.js:72:19)
19:25:24.377 at Compiler.emitRecords (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/Compiler.js:375:39)
19:25:24.378 at compiler.emitAssets.err (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/Watching.js:53:20)
19:25:24.397 at hooks.afterEmit.callAsync.err (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/webpack/lib/Compiler.js:361:14)
19:25:24.398 at _err0 (eval at create (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:20:1)
19:25:24.419 at callback (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/copy-webpack-plugin/dist/index.js:126:17)
19:25:24.420 at afterEmit (/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/copy-webpack-plugin/dist/index.js:220:13)
19:25:24.439 [ERROR] 读取app.json失败...
19:25:24.464 ENOENT: no such file or directory, copyfile '/Users/tanranran/Code/HomeworkStore/StoreServer/StoreServer/unpackage/dist/dev/.tmp/app-plus/manifest.json' -> '/Users/tanranran/Code/HomeworkStore/StoreServer/StoreServer/unpackage/dist/dev/app-plus/manifest.json'

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