use jquery package webpack code example Example: import jquery webpack import $ from 'jquery'; $('.my-element').animate(/* ... */);