I am trying to run a JavaScript/jQuery function and Firebug gets the error:
$ is not defined $(function()\".
The JavaScript code is placed
Im using Asp.Net Core 2.2 with MVC and Razor cshtml My JQuery is referenced in a layout page I needed to add the following to my view.cshtml:
@section Scripts { $script-here }
I have solved it as follow.
import $ from 'jquery'; (function () { // ... code let script = $(..) })();