Problem: In VUE version 3.0.4, an error is reported when using axios
Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at mergeConfig (axios.js:1308)
Solution:
Reinstall axios:
npm install [email protected] --save
okay~
Similar Posts:
- [Solved] axios Configurate baseURL Error: Uncaught TypeError: Cannot set properties of undefined (setting ‘baseURL’)
- [Solved] Python Error: TypeError: ‘dict_keys’ object does not support indexing
- JS Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- How to Solve Vue3 ts setup getCurrentInstance Error
- [How to Solve] Uncaught ReferenceError: app is not defined
- Solution to the problem of “TypeError: Assignment to constant variable”
- TypeError: Cannot read property ‘length’ of null
- [Solved] Vue route jump error: Uncaught TypeError: Cannot read property ‘push’ of undefined
- Axios encapsulate error: cyclic dependency [How to Solve]
- [Solved] Vue Axios error: TypeError: Cannot set property ‘tableData‘ of undefined