1***@qq.com
1***@qq.com
  • 发布:2023-02-07 11:45
  • 更新:2023-02-14 15:16
  • 阅读:230

vite+vue3+pinia+axios app端启动失败

分类:uni-app

在浏览器中正常运行

但是在app中启动失败
报错如下

11:37:37.150 项目 'uni-preset-vue-vite' 编译成功。  
11:37:37.255 正在同步手机端程序文件...  
11:37:37.877 同步手机端程序文件完成  
11:37:39.305 项目 'uni-preset-vue-vite' 编译成功。  
11:37:39.309 正在同步手机端程序文件...  
11:37:40.178 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: FormData is not defined  
 at  (app-service.js:665:22)  
 at  (app-service.js:3937:3)

有没有大佬能解释一下

2023-02-07 11:45 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

建议基于报错 FormData is not defined 排查问题,有可能是 axios app端存在兼容问题

要回复问题请先登录注册