title: "$.getJSON is not a function" using jQuery from babel-node and ES6
body: <p>I'm trying to import jQuery using ES6, and, most importantly, <strong>I'm running the code using babel-node (cli).</strong></p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/34338411/how-to-import-jquery-using-es6-syntax">a question</a>, but the solution reported there doesn't seem to work: I tried</p>
  
  <pre><code>npm i --save jquery
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>import {$,jQuery} from 'jquery';
  
  console.log($);
  </code></pre>
  
  <p>But I get <code>undefined</code> logged to the console, and I cannot use jQuery. </p>
  
  <p><strong>How should  I import <code>$</code>?</strong></p>
  
  <p>I also tried </p>
  
  <pre><code>import $ from 'jquery';
  </code></pre>
  
  <p>as suggested from @Jai and reported on the <a href="https://www.npmjs.com/package/jquery#babel" rel="nofollow noreferrer">npm manual</a>, but even though I obtain "[Function"] as the result of <code>console.log($)</code>, <code>$.getJSON("www.google.com")</code> returns me <code>TypeError: _jquery2.default.getJSON is not a function</code>. </p>
  
  <p>This is true only running the code from babel-node (cli), if I run the code from the browser loading the generated bundle it works.</p>