I have use mCustomScrollbar jquery plugin but there some error have come & error like:
Uncaught Error: Mismatched anonymous define() module..
Help appreciated.
Thanks.
My mCustomScrollbar jquery plugin code:
define([
'jquery',
'mCustomScrollbar',
'jquery/ui'
], function (,ドル mCustomScrollbar) {
'use strict';
/*mcustomScrollbar plugin code here...*/
});
1 Answer 1
Call js file in default_head_blocks.xml
#app/design/frontend/yourvendor/yourtheme/Magento_Theme/layout/default_head_blocks.xml
<script src="js/mCustomScrollbar.js"></script>
Place file under /app/design/frontend/yourvendor/yourtheme/web/js
-
-
yes js file is calling but i have face some module related error..like Uncaught Error: Mismatched anonymous define() module....user11256– user112562017年06月28日 10:00:22 +00:00Commented Jun 28, 2017 at 10:00
-
Please update your question with actual errors, because you have asked for adding of JS library . Right question will grab right person to help youManoj Deswal– Manoj Deswal2017年06月28日 10:04:29 +00:00Commented Jun 28, 2017 at 10:04
-
Explore related questions
See similar questions with these tags.