Good Morning Every Body When I compile my js file , in my console have this error
What I Doing Wrong?
1 Answer 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
Shoaib Munir
9,59210 gold badges54 silver badges109 bronze badges
-
Great. You are welcome :)Shoaib Munir– Shoaib Munir2019年04月05日 04:11:53 +00:00Commented Apr 5, 2019 at 4:11
default