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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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