uni.request请求
 
                                        
                                    
                                    - 发布:2022-06-24 09:15
- 更新:2024-04-07 13:21
- 阅读:3035
产品分类: uniapp/小程序/抖音
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.4
第三方开发者工具版本号: 1.10.1-94fbd8f
基础库版本号: 1.32.1
项目创建方式: CLI
CLI版本号: 4.5.15
操作步骤:
                                    
                                         
                                
                                                                                                预期结果:
                                    
                                    
                                        没有warning
                                     
                                
                                                                                                没有warning
实际结果:
                                    
                                    
                                        有warning  
VM149:2 AssignmentError: Object is not assignable to type RequestResponse. Property isPrefetch is missing but required in type RequestResponse.
                                     
                                
                                                            有warning
VM149:2 AssignmentError: Object is not assignable to type RequestResponse. Property isPrefetch is missing but required in type RequestResponse.
bug描述:
为什么没有快手小程序呢,或者其他。
VM149:2 AssignmentError: Object is not assignable to type RequestResponse. Property isPrefetch is missing but required in type RequestResponse.  
基于uni-app开发的项目,request总是报这个错误
 
                                                                    
                                                                直接使用快手小程序(不使用 uni-app )测试一下,是否存在此问题?请详细描述您的问题,【咨询问题/bug处理优先级规则】:https://ask.dcloud.net.cn/article/38139
 
                                                                    
                                                                同问!
VM229:2 AssignmentError: Object is not assignable to type RequestResponse.
Property isPrefetch is missing but required in type RequestResponse.
at j (<anonymous>:2:151971)
at <anonymous>:2:151081
at <anonymous>:2:152192
at d.success (<anonymous>:2:151337)
at success (<anonymous>:2:282644)
at Object.success (<anonymous>:2:171892)
at m (C:\Users\zkvvv\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service-remote.js:1:50697)
at re.<anonymous> (C:\Users\zkvvv\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service-remote.js:1:3973)
at Generator.next (<anonymous>)
at i (C:\Users\zkvvv\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service-remote.js:1:2365)
 
                                                                    
                                                                VM145:2 AssignmentError: Object is not assignable to type RequestResponse.
Property isPrefetch is missing but required in type RequestResponse.  这个如何解决呢
 
                                                                    
                                                                快手有解决这个问题吗
VM145:2 AssignmentError: Object is not assignable to type RequestResponse.
Property isPrefetch is missing but required in type RequestResponse.
at k (<anonymous>:2:190043)
at <anonymous>:2:189153
at <anonymous>:2:190264
at d.success (<anonymous>:2:189409)
at success (<anonymous>:2:282710)
at Object.success (<anonymous>:2:210029)
at J (C:\Users\huawei\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service.js:42:26087)
at Tr.<anonymous> (C:\Users\huawei\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service.js:41:11944)
at Generator.next (<anonymous>)
at Se (C:\Users\huawei\AppData\Local\Programs\mini-app-ide\resources\app.asar\preload-service.js:41:10025)
 
             
             
             
			 
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                    

 
                                                                     
            
1***@qq.com
taro 项目也会报这个警告
2023-10-17 09:28