问题遇到的现象和发生背景
uniapp 使用vue2引入vant 在手机基座运行,直接白屏报错,在游览器中运行是好的,我需要打包成app,不是小程序
遇到的现象和发生背景,请写出第一个错误信息
报错信息reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'userAgent' of undefined
我把引用vant注释后就不会报错,但是现在开发静态页面都快开发完了,必须使用vant