skip to Main Content

enter image description here

I import some js files to my component but when i start app the browser gives me this error:
Uncaught ReferenceError: jQuery is not defined.
I load jquery before everything else so I don’t understand how it can give error.

2

Answers


  1. I hope this helps, Add angular.json as shown in the photo enter image description here

    Login or Signup to reply.
  2. First of all, you need to install jquery using npm, and also don’t forget to add it to the index.html file, I have shown it in the photo. enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search