TypeError: Cannot create property 'type' on number '20001'
时间: 2024-05-18 08:13:56 浏览: 75
这个错误是因为你在一个数字上尝试创建一个属性,而数字是不可编辑的。根据你提供的引用,这个错误可能是由于你在使用element plus中的upload上传组件时,file-list属性的类型不正确导致的。官方文档要求file-list属性是一个包含对象的数组,而你之前使用的是一个逗号分隔的字符串。当需求更改后,你可能没有注意到这一部分,导致出现了这个错误。解决方法是将file-list属性的值更改为一个包含对象的数组。这样就可以解决TypeError: Cannot create property 'type' on number '20001'的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ASP.NET MVC运行出现Uncaught TypeError: Cannot set property __MVC_FormValidation of null的解决方法](https://download.csdn.net/download/weixin_38731761/13069683)[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: 33.333333333333336%"]
- *2* [: Error in callback for watcher “fileList“: “TypeError: Cannot create property ‘uid‘ on](https://blog.csdn.net/SqlloveSyn/article/details/131991044)[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: 33.333333333333336%"]
- *3* [Uncaught TypeError: Cannot create property ‘LAY_TABLE_INDEX‘ on number ‘3](https://blog.csdn.net/qq_45251343/article/details/118715120)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文