uniapp中使用 vant,运行到真机基座出现报错Cannot read property 'userAgent' of undefined #12968
Unanswered
suolong182
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用的是若依的移动端框架+vant2+vau2,在浏览器运行没有问题不会报错,选择运行到真机时,出现报错,报错信息如下:
![image](https://private-user-images.githubusercontent.com/167269201/343641056-35b60789-acee-4fdf-962d-704e2a1d7f2f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjE4OTksIm5iZiI6MTczOTU2MTU5OSwicGF0aCI6Ii8xNjcyNjkyMDEvMzQzNjQxMDU2LTM1YjYwNzg5LWFjZWUtNGZkZi05NjJkLTcwNGUyYTFkN2YyZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxOTMzMTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hOTRjMDRlMjYxZmFmYjY5YTZiMGExNzRiMGY5MjJhYzcwMmFiMTg1Y2EzMjJlNmEwOWZlNzNjZjE0N2Y2MDVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.riMf8UJA1KgdLtxltD_SFKHTZrEZTZS-PJWNm8PGmuc)
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'userAgent' of undefined
at isIOS (app-service.js:14002:69)
at (app-service.js:13970:31)
at webpack_require (app-service.js:80:30)
at (app-service.js:13377:20)
at webpack_require (app-service.js:80:30)
at (app-service.js:11488:37)
at webpack_require (app-service.js:80:30)
at (app-service.js:9268:43)
at webpack_require (app-service.js:80:30)
at eval (:11:36)
qing'wen请问是什么原因导致的?求解,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions