I want to use this library in my React application: http://propeller.in, but it's built on jQuery. I have added the following relevant code in my Index.js React component:
import $ from 'jquery';
import 'propellerkit/dist/js/propeller.js';
I've also tried this:
import 'jquery/dist/js/jquery.js';
import 'propellerkit/dist/js/propeller.js';
I've made sure both node modules are installed. For some reason, I keep getting a $ is not defined error.
import * as $ from 'jquery';but since I did not I didn't find it worthy of a top level answer.import * as $ from 'jquery/dist/js/jquery.js';or justimport 'jquery';? That should expose jQuery as a "global" in the dist webpack creates.