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?

asked Apr 4, 2019 at 15:33

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

answered Apr 4, 2019 at 15:44
1
  • Great. You are welcome :) Commented Apr 5, 2019 at 4:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.