I have the following JavaScript, which executes without any errors or warnings:
import * as jQuery from './node_modules/jquery/dist/jquery.min.js';
window.$ = jQuery;
... but when I try to use my new $() function ...
$(document).ready(function() {
console.log('Hello!');
} );
... I get this error:
TypeError: $ is not a function
What am I doing wrong?