在浏览器中正常运行
但是在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)
有没有大佬能解释一下
1 个回复
DCloud_UNI_WZF
建议基于报错 FormData is not defined 排查问题,有可能是 axios app端存在兼容问题