3***@qq.com
3***@qq.com
  • 发布:2019-08-22 17:16
  • 更新:2020-10-19 18:02
  • 阅读:1771

uniapp 编译成APP时 没有Object.prototype吗

分类:uni-app

导入SOCKJS 编译时报一下错误
2222 2241 E console : [ERROR] reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->TypeError: undefined is not an object (evaluating 'Object.prototype')

2019-08-22 17:16 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

应该和Object.prototype没关系,你使用的插件可能访问了dom、bom等非H5端不支持的API

3***@qq.com

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

明白,谢谢~

不会UNIApp

不会UNIApp

你好,我导入SockJS 打包App时,这是什么问题。

E console : [ERROR] reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->TypeError: undefined is not an object (evaluating 'a.prototype')

E console : getTemplateInfo== template md5 7c25713212489a9d7d6c6d5acb149e03 length 3036674 base64 md5 fCVxMhJImp19bG1ayxSeAw== response header {"templateSourceBase64MD5":["fCVxMhJImp19bG1ayxSeAw=="],"templateSourceMD5":["7c25713212489a9d7d6c6d5acb149e03"]}

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

    直接把SockJS弃用了把 APP上~

    2019-09-11 10:10

Meaty

Meaty - 95IT

我调试报这个:
DevTools failed to load SourceMap: Could not load content for http://localhost:8080/static/js/sockjs.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
这个:
chunk-vendors.js:76797 WebSocket connection to 'ws://localhost:8080/sockjs-node/063/y05lysjd/websocket' failed: WebSocket is closed before the connection is established.

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