Unable to load external module in mendix widget or application
Sjoerd van Bavel
Is it written in Dojo (Custom widget) or React (Pluggable widget)?
I have encountered this error many times writing a Dojo widget. You have to be sure you are importing the library in the correct manner with AMD. Please verify if that is the case.
Next to that Mendix bundles it’s widgets whilst deploying with webpack, clustering all widgets in one file. If your widget is referencing some global variable also defined in another widget you can encounter the multiDefine error. I have experienced this many times because multiple widgets were loading the jQuery library and defining the jQuery variable $ multiple times.
EDIT: Since you are using Dojo, I would suggest to try and solve your problem in the following manner
First try to find a AMD supported resource of your library file and with ‘Bundle widgets when running locally’ setting try to get it to work
If this fails, try the ‘Check widgets’ feature in Studio Pro.
This should tell you there is a problem with your widget
If an error occurs, the error can be found in the log file, to be located at: \deployment\data\tmp\dojo\build-report.txt