(已解决)vue3使用axios报Uncaught TypeError: Cannot convert undefined or null to object axios.js:1308错误
在学习使用vue3.04和axios0.24版本请求ajax时候,出现了下图错误
Uncaught TypeError: Cannot convert undefined or null to object axios.js:1308
根据测试在最新的vue3.04版本,使用0.22~0.24(最新)版本的axios都有这个问题
解决:使用0.21及以下版本axios
npm install axios@0.21 --save
目前官方没有给具体解决方案
(已解决)vue3使用axios报Uncaught TypeError: Cannot convert undefined or null to object axios.js:1308错误相关推荐
- TypeError 之 Cannot convert undefined or null to object
分享一个今天遇到的一个bug , 希望对你也有用. 1.Object.keys()中传错了参数 2.由于undefined和null无法转成对象,所以如果它们做为Object.assign()的参数( ...
- Vue3.x 报 Uncaught TypeError:Object(...) is not a function( Vue3对象不是函数解决思路)
今天在vue3的练习时候发现我写的路由总是浏览器报错,仔细校验文档发现并没有错误啊,可总是报Uncaught TypeError:Object(...) is not a function的错误,看下 ...
- Uncaught TypeError: Cannot set properties of null (setting ‘innerText‘)解决方法
昨天用js写了一个随机抽奖系统出现了Uncaught TypeError: Cannot set properties of null (setting 'innerText') 这个报错意思是无法读 ...
- (已解决)wamp + Apache报错:出现403Forbidden You don't have permission to access / on this server.
文章目录 `解决办法:` `*** `附件 · 延伸阅读 · 参考: 解决办法: 注意: 案例环境:win7 x64 或 win10 仅仅只需要修改apache配置文件httpd.conf 即可. 上 ...
- python打开文件报错无效序列_解决Python 写文件报错TypeError的问题
处理上传的文件: f1 = request.FILES['pic'] fname = '%s/%s' % (settings.MEDIA_ROOT, f1.name) with open(fname, ...
- 已解决(Python语法报错)SyntaxError: invalid syntax
已解决(Python语法报错)SyntaxError: invalid syntax 文章目录 报错信息 报错翻译 报错原因 解决方法 千人全栈VIP答疑群联系博主帮忙解决报错 报错信息 粉丝群里面一 ...
- 已解决(Python安装报错)Visit python.org to download an earlier version of Python.
已解决(Python安装报错)One or more ssues caused the setup to fail Please fx the sses and then retry setup. F ...
- 高德地图点聚合插件AMap.MarkerClusterer报错Uncaught TypeError: Cannot read properties of null (reading ‘Md‘)
报错信息:Uncaught TypeError: Cannot read properties of null (reading 'Md') mapscallback=___onAPILoaded&a ...
- 【已解决】启动Python报错api-ms-win-crt-process-l1-1-0.dll缺失,windows7无法升级,升级补丁打不上的解决办法
[已解决]启动Python报错api-ms-win-crt-process-l1-1-0.dll缺失,windows7无法升级,升级补丁打不上的解决办法 问题:启动python报错api-ms-win ...
最新文章
- 当你使用微信和 QQ 的时候,请不要忘记 ICQ 这个伟大的公司!
- c语言:【顺序表】静态顺序表的初始化、打印、尾插、尾删
- 关于 top、left 结合 translate 实现居中的原理探讨
- 基于FPGA的简易OFDM调制解调系统开发
- some understanding of《Improved Use of Continuous Attributes in C4.5》
- LaTeX indicator function
- Oracle11g客户端安装配置
- 算法:求两个数最大公约数
- 看上冰岛的域名con.is
- 在没有鼠标或键盘的情况下在 Mac 上如何启用蓝牙?
- 解决UnicodeEncodeError: 'gbk' codec can't encode character '\xe4' in position 319等问题
- 【二叉树】美团的【天天领现金】活动,不就是 斐波那契 数列么?
- python turtle画中国象棋_Python turtle绘画象棋棋盘
- CTA认证system_process定位联网未明示问题
- sql server 系统表 介绍
- office显示“你的许可证并非正版....”
- web前端数据表格有合并项的一种简单实现方法
- Android Studio链接夜神模拟器
- VS 2013各版本的激活码
- 如何在基于python的聊天室中实现表情接收功能
热门文章
- 打开Xterm加中文新宋体 。
- oracle srvctl命令,Oracle SRVCTL使用说明
- dedecms配置流程
- python 企业发放的奖金根据利润提成
- ORB-SLAM2源码阅读(1)
- C语言---求符合给定条件的整数集
- mysql out of memory 解决_mysqld-nt: Out of memory (Needed 1677720 bytes)解决方法
- 从 0 到 1 的 VR 界面设计之路
- go笔记(3)Go语言fmt包的用法
- 购买多人版InterBase Server可免费获得InterBase ToGo