face-recognition-brain
face-recognition-brain copied to clipboard
Axios package missing, causes error: axios.post is not a function.
The Problem
When cloning this repo, adding a valid API key in ./src/App.js, and installing Node packages, the web app is not functional.
The Error
When adding valid URL in the "Image Link Form", and clicking "Detect", the console shows an error of:
"TypeError: axios.post is not a function"
The Fix
A dependency in package.json needs added:
"axios": "0.27.2"
Also, in ./src/App.js, axios will need imported:
import Axios from 'axios';
This will then allow the web app to work with a valid Clarifai API.
I can make these changes and send a pull request if wanted.