0

Jquery is imported to my project as follows:

import $ from 'jquery';

..and jquery is working fine in my project. However, if I try to run some jquery functions on the console, it does not fully work. I can get DOM elements, but I cannot call certain functions on them:

Screenshot of console commands

The exact same commands work on other sites, that use jquery. Is there anything I can do to make devtools debugging easier - do I need to fix that import somehow or is this a lost cause?

diynevala
  • 493
  • 1
  • 4
  • 17
  • Try running this first `$=await import('/jquery.js')` with the real path for jquery. Alternatively, add `window.$ = $` to your project's source code. – wOxxOm Mar 24 '22 at 07:58

0 Answers0