Invalid prop: type check failed for prop "extraIcon". Expected Object, got String with value "{type: 'person-filled'}
时间: 2023-08-11 15:55:47 浏览: 50
抱歉,看起来extraIcon属性的类型检查失败了。根据错误消息,extraIcon属性的类型应该是一个对象,但你提供的值是一个字符串"{type: 'person-filled'}"。请确保extraIcon属性的值是一个正确的对象,例如{ type: 'person-filled' }。这样应该可以解决类型检查失败的问题。如果还有其他问题,请随时提问。
相关问题
Invalid prop: type check failed for prop "rules". Expected Object, got String with value "bugReportRules"
根据引用内容和引用内容,错误信息"Invalid prop: type check failed for prop 'rules'. Expected Object, got String with value 'bugReportRules'"表明出现了类型检查失败的问题。错误信息中提到期望得到一个对象,但实际得到的是一个字符串。这可能是由于在标签中使用了错误的属性绑定方式导致的,如引用内容所述。需要使用冒号绑定方式来正确绑定对象类型的验证规则,而不是直接赋值一个字符串。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Invalid prop:type check failed for prop.Expected String with value“[object Object]”got Object](https://blog.csdn.net/qq_45796592/article/details/131870831)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [验证规则时出现的问题:Invalid prop: type check failed for prop “rules“. Expected Object, got ...](https://blog.csdn.net/zhangyysp/article/details/111573025)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
Invalid prop: type check failed for prop "currentRow". Expected Object, got String with value ""
这个报错的意思是,传入的值类型与预期不符。预期的是一个对象类型,但实际传入的是一个空字符串,即字符串类型。这可能是因为在代码中对于"currentRow"属性的类型检查没有通过。为了解决这个问题,可以将返回值改为一个空对象,而不是一个空字符串。这样就符合预期的对象类型。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [报错:[Vue warn]: Invalid prop: type check failed for prop “title“Expected string with value “11...](https://blog.csdn.net/weixin_48211022/article/details/130555387)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Invalid prop: type check failed for prop “src“. Expected String with value “[object Object]](https://blog.csdn.net/weixin_45890764/article/details/120311290)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]