1***@qq.com
1***@qq.com
  • 发布:2022-12-12 11:02
  • 更新:2023-01-06 14:46
  • 阅读:109

【报Bug】HBuilderX 运行到模拟器异常

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 3.6.13

操作步骤:

运行到模拟器(逍遥模拟器)

预期结果:

正常运行

实际结果:

白屏和控制台报错

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: process is not defined
at (app-service.js:2721:16)
at (app-service.js:38618:3)

bug描述:

更新到最新版本一直异常,无法运行原来的项目 ,回退版本后正常

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: process is not defined
at (app-service.js:2721:16)
at (app-service.js:38618:3)

2022-12-12 11:02 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

运行到什么模拟器? 截图来看看

  • 1***@qq.com (作者)

    逍遥模拟器

    2022-12-12 11:21

1***@qq.com

1***@qq.com (作者)

估计官方不修复了…………

1***@qq.com

1***@qq.com (作者)

3.6.15版本也是这样…………

2022-12-29 10:04:55.418 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2022-12-29 10:04:55.419 [WARNING:] QLayout: Attempting to add QLayout "" to ExtFormDialog "", which already has a layout
2022-12-29 10:04:57.178 [WARNING:] [PluginHost] refreshListData: QJsonValue(object, QJsonObject({"checkedBaseIndex":2,"code":4,"device":{"name":"127.0.0.1:65002","platform":"android","runState":1,"runStateStr":"已运行在项目[irapp]","udid":"127.0.0.1:65002","version":"7.1.2"},"userData":{"checkedBaseIndex":2,"cli":false,"platform":"android","runningDevices":[{"udid":"127.0.0.1:65002","workspaceFolder":{"appid":"UNI12E0E53","id":"{e9083389-1735-48b1-94ad-d8233a1fb376}","metatype":"WorkspaceFolder","name":"irapp","nature":"UniApp_Vue","uri":{"authority":"","fragment":"","fsPath":"D:/workdir1/irapp","metatype":"Uri","path":"/D:/workdir1/irapp","query":"","scheme":"file"},"vueVersion":"3"}}],"workspaceFolder":{"id":"{e9083389-1735-48b1-94ad-d8233a1fb376}","name":"irapp","nature":"UniApp_Vue","uri":{"$mid":1,"external":"file:///d%3A/workdir1/irapp","fsPath":"d:\workdir1\irapp","path":"/D:/workdir1/irapp","scheme":"file"}}}}))
2022-12-29 10:04:57.208 [WARNING:] uniapp compiled errorOccurred====== "进程已崩溃"
2022-12-29 10:04:58.408 [INFO:] node "D:/apps1/HBuilderX/plugins/node/node.exe"
2022-12-29 10:04:58.408 [INFO:] args ("--max-old-space-size=2048", "--no-warnings", "D:/apps1/HBuilderX/plugins/uniapp-cli-vite/node_modules/@dcloudio/vite-plugin-uni/bin/uni.js", "-p", "app")

1***@qq.com

1***@qq.com (作者)

知道原因了,新版本process.env 环境变量有删减。

要回复问题请先登录注册