it meant that $ isn’t available inside your apiCalls.js file. Just import the jQuery at the top of your apiCalls.js file:
$
apiCalls.js
import $ from 'jquery'; function getBlogInfo() { ...