Following the answer to this question I tried to import jQuery using import {$, jQuery} from 'jquery';. and am getting the error Uncaught TypeError: (0 , _jquery.$) is not a function in the browser.
Am using Babel with the ES2015 preset to transpile my Code. If I use two separate imports i.e. import $ from 'jquery'; import jQuery from 'jquery' then it works fine. Why can't I use the combined syntax?
Add a comment
|