3

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

1

Instead of defined use require Like this:

require([
    'jquery',
    "jquery/ui"
], function($){
    'use strict';
    //Your Js code here
});

This will surely fix the error that you are facing

2
  • 1
    Very Thanks I Fixed the error Commented Apr 4, 2019 at 19:22
  • Great. You are welcome :) Commented 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.