uni-app
uni-app copied to clipboard
error: Interface xxx does not have constructors
trafficstars
发行方式
None
具体平台
error: Interface xxx does not have constructors
开发环境
Windows
项目创建方式
HBuilderX
依赖版本
Hbuild X 4.6
问题描述
19:50:06.834 [plugin:uni:app-uts] 编译失败 19:50:06.834 error: Interface MyRequestOptions does not have constructors 19:50:06.834 at pages/login/login2.uvue:27:1 19:50:06.834 25 | // } 19:50:06.834 26 | // }; 19:50:06.834 27 | request({ 19:50:06.834 | ^ 19:50:06.834 28 | method: "POST", 19:50:06.834 29 | data: {
重现步骤
期望行为
请问一下,我这代码写的有什么问题?uts 一大堆不兼容ts的问题 data: options.data || {} 这种语法也不能用, 必须使用三元运算的 我工具是刚刚下载的,我项目也是这2天才创建的新项目
实际行为
No response
截图或录屏
No response