How often we come across an error like "jQuery is not defind" in Drupal 8? Quite a lot of time. In most cases, this error can be resolved by passing drupal setting argument in drupal js behaviour. In your theme.libraries.yml file of your theme that you have used add these line in your global scripting tag
Step 1
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
Once you are done with step 1 then clear chache. Open your…