6***@qq.com
6***@qq.com
  • 发布:2019-03-19 19:20
  • 更新:2019-04-19 14:44
  • 阅读:2224

app云打包失败总是提示 app.json缺失

分类:uni-app

[HBuilder] 19:12:27.972 { Error: ENOENT: no such file or directory, open 'D:\web\dcloud\MomPsychology\unpackage\dist\build.tmp\app-plus\app.json'
[HBuilder] 19:12:27.972 at Object.fs.openSync (fs.js:646:18)
[HBuilder] 19:12:27.980 at Object.fs.readFileSync (fs.js:551:33)
[HBuilder] 19:12:27.984 at parseConfig (D:\Program Files\HBuilderX\plugins\weapp-tools\lib\index.js:1:4187)
[HBuilder] 19:12:27.990 at index (D:\Program Files\HBuilderX\plugins\weapp-tools\lib\index.js:1:12473)
[HBuilder] 19:12:27.994 at Promise (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:17:11)
[HBuilder] 19:12:27.995 at new Promise (<anonymous>)
[HBuilder] 19:12:28.001 at compiler.hooks.done.tapPromise.compilation (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:12:14)
[HBuilder] 19:12:28.007 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:17:17)
[HBuilder] 19:12:28.008 at AsyncSeriesHook.lazyCompileHook (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)

希望大神看见能指点一下

2019-03-19 19:20 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

检查一下pages.json和manifest.json文件,看下是否有语法错误

6***@qq.com

6***@qq.com (作者) - 90后

我已经解决了
使用vue.js 嵌套出的问题,已经解决了
v-for= "(item,index ) in list"
v-for="(val,i) in item.list"

一菜鸟一

一菜鸟一

用排除法吧,我全部删了一点点排除的
最后查到

components: {
prompt,
},
多了个没用的组建
也没引入

a***@163.com

a***@163.com

太可怕了? 确定要检查语法和多余的组件?

  • 3***@qq.com

    一般都是 v-for 嵌套的 index 变量名重复问题,改一下就可以的了;怕找不到的话用 字符搜索(当前目录) 搜出来一个个改

    2019-04-19 18:19

要回复问题请先登录注册