I'm trying to include blockUI javascript in my extension, and I added this code
var config = {
paths:{
"blockUI":"Mypackage_Mymodule/js/jquery.blockUI.js"
},
shim:{
'blockUI':{
'deps':['jquery']
}
}
};But keep getting this error:
Error: Script error for: blockUI http://requirejs.org/docs/errors.html#scripterror
Not sure what I'm doing wrong here
var config = {
paths:{
"blockUI":"Mypackage_Mymodule/js/jquery.blockUI"
},
shim:{
'blockUI':{
'deps':['jquery']
}
}
};You have to remove .js file extension from js declaration.
You have to replace Mypackage_Mymodule/js/jquery.blockUI.js with Mypackage_Mymodule/js/jquery.blockUI in above path declaration in requirejs-config.js file.
Thanks.
@jstrez77 Please let me know if you have issue regarding requirejs file.
Thanks.