Skip to content

uniapp vue2 真机调试白屏 #5910

@budguy817

Description

@budguy817

Bug 描述

h5运行正常,打包的app和真机调试,都会报错,搜了很多帖子没搜到相关解决方法,报错信息如下:
(The H5 runs normally, but when packaging the app or debugging on a real device, errors occur. I have searched many posts but haven't found any relevant solutions. The error message is as follows:)

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'appName' of undefined
at (app-service.js:5808:25)
at (app-service.js:3239:91)
at (app-service.js:3243:3)
at (app-service.js:8498:30)
at webpack_require (app-service.js:80:30)
at eval (:14:41)
at (app-service.js:3227:1)
at webpack_require (app-service.js:80:30)
at eval (:11:18)
at (app-service.js:3173:1)

复现步骤

直接运行android app基座,就会报错

预期结果

希望页面正常打开

实际结果

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions