javascript - Workpress Enqueue Script Issue - Uncaught TypeError: $ is not a function -


my javascript works on static site, when enqueue js in wordpress functions.php giving me error. can't figure doing wrong.

here wordpress enqueue code

wp_enqueue_script( 'smooth', get_template_directory_uri() . '/js/smooth-scroll.js', '', '', true); 

here error message

uncaught typeerror: $ not function 

jquery in wordpress runs in noconflict mode, means cannot use $ alias, have use full jquery instead.

jquery( document ).ready( function( $ ) { // $() work alias jquery() inside of function       // code here  } );