mattlewis92/angular-bootstrap-calendar

Uncaught Error: Mismatched anonymous define() module: function

Closed this issue · 6 comments

Hi,

after version 0.23.0, this error occurred when compiled with requirejs:

Uncaught Error: Mismatched anonymous define() module: function (__WEBPACK_EXTERNAL_MODULE_12__, __WEBPACK_EXTERNAL_MODULE_76__, __WEBPACK_EXTERNAL_MODULE_78__) {

Any help why this happen?

Sorry but I've never used requirejs before, would you be able to put together a simple repo that demonstrates your issue and I'll try and work out what's going wrong. Thanks! 😃

Right here, says I

interact.js:13 Uncaught TypeError: Cannot read property 'module' of undefined
at interact.js:13

module.exports = angular
.module('mwl.calendar', [])

Any .module is not recognized

This might help: http://requirejs.org/docs/errors.html#mismatch

Make sure angular, moment and interact are defined as dependencies of this lib in your require config. If you're still stuck I'd highly recommend posting a repo that reproduces your problem to stackoverflow where someone with better requirejs knowledge than me will be able to help. Happy new year! 😃

Hi,
so, how can you explain that version 0.23.0 works and 0.24.0 not? In the version 0.23.0 you have:
})(this, function(WEBPACK_EXTERNAL_MODULE_12, WEBPACK_EXTERNAL_MODULE_28, WEBPACK_EXTERNAL_MODULE_52) {

and in the version 0.24.0 you have:
)(this, function(WEBPACK_EXTERNAL_MODULE_12, WEBPACK_EXTERNAL_MODULE_76, WEBPACK_EXTERNAL_MODULE_78) {

there is something you have changed that makes the plugin stop working :/
it's an enterprise project, so i can't give you code but i'll give you a print from the error:
http://prnt.sc/dq1lhf