Good Morning Every Body When I compile my js file , in my console have this error

enter image description here

What I Doing Wrong?

1 Answer 1


Instead of defined use require Like this:

], function($){
    'use strict';
    //Your Js code here

This will surely fix the error that you are facing

  • 1
    Very Thanks I Fixed the error Apr 4, 2019 at 19:22
  • Great. You are welcome :) Apr 5, 2019 at 4:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.