小程序
小游戏
企业微信
微信支付
扫描小程序码分享
编译时报错了,app.json: 在项目根目录未找到 app.json ,需要在哪里配置才能找到这个文件
10 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
project.config.json文件里配置小程序根目录,你的app.json需要放在根目录下。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
创建小程序的时候把client做为根目录
买的demo里面就没有app.json和app.js文件怎么办
求解决
可以在hbuilder中将程序跑起来,选择运行到微信开发者工具就可以了
有没有大佬解释一下为什么不能预览?
文件打开路径错误
message:Error: app.json: 在项目根目录未找到 app.json
大佬可以看看这个怎么解决吗
app.json里应该有语法错误,查一下;
"van-radio-group": "@vant/weapp/radio-group/index",
"van-slider": "@vant/weapp/slider/index",
"van-field": "@vant/weapp/field/index",
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-tabbar": "@vant/weapp/tabbar/index",
"van-tabbar-item": "@vant/weapp/tabbar-item/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"van-submit-bar": "@vant/weapp/submit-bar/index",
"van-icon": "@vant/weapp/icon/index",
"van-stepper": "@vant/weapp/stepper/index",
"van-empty": "@vant/weapp/empty/index",
"van-overlay": "@vant/weapp/overlay/index",
"van-rate": "@vant/weapp/rate/index",
"color-icon": "./component/color-icon/index",
"van-swipe-cell": "@vant/weapp/swipe-cell/index",
"van-action-sheet": "@vant/weapp/action-sheet/index",
"van-count-down": "@vant/weapp/count-down/index",
"van-steps": "@vant/weapp/steps/index"
}
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
project.config.json文件里配置小程序根目录,你的app.json需要放在根目录下。
创建小程序的时候把client做为根目录
买的demo里面就没有app.json和app.js文件怎么办
求解决
可以在hbuilder中将程序跑起来,选择运行到微信开发者工具就可以了
有没有大佬解释一下为什么不能预览?
文件打开路径错误
message:Error: app.json: 在项目根目录未找到 app.json
大佬可以看看这个怎么解决吗
app.json里应该有语法错误,查一下;
"van-radio-group": "@vant/weapp/radio-group/index",
"van-slider": "@vant/weapp/slider/index",
"van-field": "@vant/weapp/field/index",
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-tabbar": "@vant/weapp/tabbar/index",
"van-tabbar-item": "@vant/weapp/tabbar-item/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"van-submit-bar": "@vant/weapp/submit-bar/index",
"van-icon": "@vant/weapp/icon/index",
"van-stepper": "@vant/weapp/stepper/index",
"van-empty": "@vant/weapp/empty/index",
"van-overlay": "@vant/weapp/overlay/index",
"van-rate": "@vant/weapp/rate/index",
"color-icon": "./component/color-icon/index",
"van-swipe-cell": "@vant/weapp/swipe-cell/index",
"van-action-sheet": "@vant/weapp/action-sheet/index",
"van-count-down": "@vant/weapp/count-down/index",
"van-steps": "@vant/weapp/steps/index"
}
}