收藏
回答

分包使用时报错,为什么?

{

"pages": [

"pages/index/index",

"pages/index/getPhone",

"pages/answerDetail/index",

"pages/enrollClass/index",

"pages/analysisDetail/index",

"pages/teacherRecruit/index",

"pages/index/search/index",

"pages/index/feedback/index",

"pages/teacherRecruit/filterPage/index",

"pages/teacherRecruit/filterPage/result",

"pages/exclusiveWeekly/index"

],

"window": {

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#ffffff",

"navigationBarTitleText": "",

"navigationBarTextStyle": "black"

},

"networkTimeout": {

"request": 20000

},

"permission": {

"scope.userLocation": {

"desc": "奇集需要获取你的位置以便提供更好的内容推荐服务"

}

},

"plugins": {

"chatbot": {

"version": "1.1.5",

"provider": "wx8c631f7e9f2465e1"

}

},

"navigateToMiniProgramAppIdList": [

"wx99418b7b5cdcc4d4",

"wxfd65f86c2f5acfe5",

"wxa2c453d902cdd452",

"wxacb0d039490c6049"

],

"subPackages": [

{

"root": "packageA",

"pages": [

"result/index",

"components/errTitleBook",

"components/questionList",

"teacherExplain/index",

"teacherExplain/web-view",

"specialPractice/index",

"specialPractice/specialPracticeDetail",

"vipCenter/index",

"teacherWiki/index",

"teacherWiki/teacherWikiDetail",

"downloadCenter/index",

"vipCenter/userAgreement",

"personalCenter/index",

"components/chatRobot"

]

},

{

"root": "pages",

"pages": [

"forExam/index"

]

}

]

}


回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2019-12-03

    参考提示,主包文件路径不要在分包中

    2019-12-03
    有用
    回复
登录 后发表内容
问题标签