Topic: Uncaught ReferenceError: Waves is not defined
Marvin Jaworski asked 8 years ago
requirejs.config({
baseUrl : './js',
shim : {
bootstrap : {
deps : [ 'jquery'],
exports: 'Bootstrap'
},
mdb : {
deps : [ 'jquery'],
exports: 'mdb'
}
},
paths : {
jquery : 'vendor/jquery.min',
underscore : 'vendor/underscore',
bootstrap : 'vendor/bootstrap.min',
mdb : 'vendor/mdb.min',
tether : 'vendor/tether.min',
text : 'vendor/text',
json : 'vendor/json',
modules : '../modules',
data : '../data'
}
});
requirejs([ 'bootstrap', 'text', 'json', 'mdb', 'tether',
'modules/slideshow/module', 'modules/flipCard/module', 'modules/accordion/module', 'modules/footer/module'],
function() {
});
Can someone explain me how I solve the problem or how I load mdb.js generally correctly with require.js?
Thanks, Marvin Mirosław Stasiak answered 7 years ago
Doug Kent commented 7 years ago
This is a temporary work-around, right? Suppose we go ahead and comment out those lines. Will buttons no longer be able to have waves? What happens when we want to upgrade the version of mdb? We have to remember our little hack, and hope it works with the new version? Is there a real fix coming for this, any way we can help make that happen? Thanks!I would like to know this aswell
ozcelebi answered 6 years ago
is there a solid solution?
After commenting those lines then "Uncaught TypeError: Cannot read property 'defaults' of undefined" is fired from line mdb.js:23672
Piotr Glejzer staff commented 6 years ago
I'm so sorry but we dont have solid solutfion for now. I put that to task 'to do'. Have a nice day.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No