烽火戏诸侯1
烽火戏诸侯1
  • 发布:2020-12-18 17:59
  • 更新:2022-04-05 21:56
  • 阅读:2675

【报Bug】运行到手机模拟器--文件查找失败:'pages/fenlei/home.vue?mpType=page' at pages.json:1

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows Feature Experience Pack 120.2212.31.0

HBuilderX版本号: 2.9.8

示例代码:
{  
    "easycom": {  
        "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"  
    },  
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages  
        {  
            "path": "pages/tuijian/home",  
            "style": {  
                "navigationBarTitleText": "推荐",  
                "navigationBarTextStyle": "black"  
            }  
        }, {  
            "path": "pages/fenlei/home",  
            "style": {  
                "navigationBarTitleText": "分类",  
                "navigationBarTextStyle": "black"  
            }  
        }, {  
            "path": "pages/shici/home",  
            "style": {  
                "navigationBarTitleText": "诗词库",  
                "navigationBarTextStyle": "black"  
            }  
        }, {  
            "path": "pages/mingju/home",  
            "style": {  
                "navigationBarTitleText": "名句",  
                "navigationBarTextStyle": "black"  
            }  
        }, {  
            "path": "pages/wode/home",  
            "style": {  
                "navigationBarTitleText": "我的",  
                "navigationBarTextStyle": "black"  
            }  
        }, {  
            "path": "pages/shici/detail",  
            "style": {  
                "navigationBarTitleText": "诗词详情",  
                "navigationBarTextStyle": "black",  
                "navigationStyle": "custom"  
            }  
        },  
         {  
            "path": "pages/wenzhang/home",  
            "style": {  
                "navigationBarTitleText": "文章列表",  
                "navigationBarTextStyle": "black",  
                "navigationStyle": "custom",  
                "enablePullDownRefresh":true  
            }  
        }  
    ],  
    "globalStyle": {  
        "navigationBarTextStyle": "black",  
        "navigationBarTitleText": "诗词汇",  
        "navigationBarBackgroundColor": "#FFFFFF",  
        "backgroundColor": "#F8F8F8"  
    },  
    "tabBar": {  
        "color": "#909399",  
        "selectedColor": "#303133",  
        "backgroundColor": "#FFFFFF",  
        "borderStyle": "black",  
        "list": [{  
                "pagePath": "pages/tuijian/home",  
                // "iconPath": "static/uview/example/component.png",  
                // "selectedIconPath": "static/uview/example/component_select.png",  
                "text": "推荐"  
            },  
            {  
                "pagePath": "pages/fenlei/home",  
                // "iconPath": "static/uview/example/js.png",  
                // "selectedIconPath": "static/uview/example/js_select.png",  
                "text": "分类"  
            },  
            {  
                "pagePath": "pages/shici/home",  
                // "iconPath": "static/uview/example/js.png",  
                // "selectedIconPath": "static/uview/example/js_select.png",  
                "text": "诗词库"  
            },  
            {  
                "pagePath": "pages/mingju/home",  
                // "iconPath": "static/uview/example/js.png",  
                // "selectedIconPath": "static/uview/example/js_select.png",  
                "text": "名句"  
            },  
            {  
                "pagePath": "pages/wode/home",  
                // "iconPath": "static/uview/example/template.png",  
                // "selectedIconPath": "static/uview/example/template_select.png",  
                "text": "我"  
            }  
        ]  
    }  
}  

操作步骤:

运行-运行到手机模拟器

预期结果:

app成功安装

实际结果:

文件查找失败:'pages/fenlei/home.vue?mpType=page' at pages.json:1

bug描述:

H5运行变一没问题
真机运行,编译的时候报错
16:47:35.311 项目 'shicihui-uni-app' 编译成功。
16:47:35.316 文件查找失败:'pages/fenlei/home.vue?mpType=page' at pages.json:1
16:47:35.317 文件查找失败:'pages/mingju/home.vue?mpType=page' at pages.json:1
16:47:35.330 文件查找失败:'pages/shici/detail.vue?mpType=page' at pages.json:1
16:47:35.353 文件查找失败:'pages/shici/home.vue?mpType=page' at pages.json:1
16:47:35.361 文件查找失败:'pages/tuijian/home.vue?mpType=page' at pages.json:1
16:47:35.362 文件查找失败:'pages/wenzhang/home.vue?mpType=page' at pages.json:1
16:47:35.372 文件查找失败:'pages/wode/home.vue?mpType=page' at pages.json:1

2020-12-18 17:59 负责人:无 分享
已邀请:
烽火戏诸侯1

烽火戏诸侯1 (作者) - 全栈程序猿

以解决,不要勾选纯 NVUE项目这个一项

hzj1216000

hzj1216000 - HZJ网络工作室

不选纯NVUE项目,生成的文件就打不开哦

1***@163.com

1***@163.com

然后呢 解决了吗

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