complete-node-bootcamp icon indicating copy to clipboard operation
complete-node-bootcamp copied to clipboard

Axios Problem

Open mattcons10 opened this issue 3 years ago • 0 comments

I have been trying to solve this issue with axios but can't seem to get it. I think it has something to do with CSP but I'm not sure.

This error arises when I am trying to log in. The email and password are sent to the login function, but axios doesn't seem to work for some reason. As stated before it could have something to do with CSP or parcel? Any help would be appreciated.

TypeError: (0 , _axios.axios) is not a function at _callee$ (bundle.js:27316) at tryCatch (bundle.js:6519) at Generator.invoke [as _invoke] (bundle.js:6750) at Generator.next (bundle.js:6575) at step (bundle.js:27303) at bundle.js:27303 at new Promise (<anonymous>) at bundle.js:27303 at login (bundle.js:27353) at HTMLFormElement.<anonymous> (bundle.js:27468)

mattcons10 avatar Dec 14 '21 19:12 mattcons10