[Solved] axios Configurate baseURL Error: Uncaught TypeError: Cannot set properties of undefined (setting ‘baseURL’)

Problem: the Axios configuration baseurl reported an error

Solution:

Reinstall the old version of Axios

npm i [email protected] -S

OVER~

After checking, it is determined that there is no problem with the writing method, and clearing the cache is invalid.

I thought of upgrading my browser two days ago, so I changed my browser, but I still reported an error.

Uninstallation reinstallation is invalid.

npm i axios -S

NPM I Axios installs the latest version by default

So back to the previous version

I searched the information for a long time and didn’t find why I reported an error. Let’s continue the development first~

Similar Posts: