Problems with 5.16.0 - 2. Compile errors

0
I have updated my development server to 5.16.0 and locally the application runs fine. However, when I try to create a deployment package, I get the following error: Running "generate:profile" (generate) task D:\Mendix5\eServiceSuite\deployment\widgets.config.json [ 'HTMLSnippet.widget.HTMLSnippet', 'CheckboxSelector.widget.checkboxselector', 'HelpText.widget.HelpText', 'HelpText.widget.HelpTextRow', 'HelpText.widget.HelpTextTrigger', 'HelpText.widget.HelpTextAttr', 'HelpText.widget.HelpTextRowAttr', 'MicroflowLabel.widget.MicroflowLabel', 'MicroflowLabel.widget.MicroflowLabelContext', 'RadioButtonList.widget.AttrRadioButtonList', 'RadioButtonList.widget.AssocRadioButtonList', 'SimpleChart.widget.SimpleChart', 'BootstrapRTE.widget.BootstrapRTE', 'CKEditorForMendix.widget.CKEditorForMendix', 'CKEditorForMendix.widget.CKEditorViewerForMendix', 'URLRedirector.Widget.URLRedirector', 'GoogleMaps.GoogleMapsOverview.googlemapsoverview', 'GoogleMaps.GoogleMapsAddMarker.googlemapsaddmarker', 'IFrame.widget.IFrame', 'MicroflowTimer.widget.MicroflowTimer', 'calendar.widget.calendar', 'ConfirmMicroflow.widget.confirmmicroflow', 'ConfirmMicroflow.widget.confirmmicroflowcontext', 'loginsystem.widget.LoginForm', 'loginsystem.widget.LoginButton', 'Signature.widget.Signature', 'EnumToggle.widget.EnumToggle', 'FormLoader.widget.FormLoader', 'DynamicImage.widget.DynamicImage', 'DynamicImage.widget.StaticImage', 'TimePicker.widget.TimePicker', 'formatstring.widget.formatstring', 'formtooltip.widget.TooltipImage', 'formtooltip.widget.TooltipLink', 'refkit.widget.InputRefSelector', 'FusionChartsWidget.FusionChartsWidget' ] Running "generate:javascript" (generate) task D:\Mendix5\eServiceSuite\deployment\widgets.config.json [ 'HTMLSnippet.widget.HTMLSnippet', 'CheckboxSelector.widget.checkboxselector', 'HelpText.widget.HelpText', 'HelpText.widget.HelpTextRow', 'HelpText.widget.HelpTextTrigger', 'HelpText.widget.HelpTextAttr', 'HelpText.widget.HelpTextRowAttr', 'MicroflowLabel.widget.MicroflowLabel', 'MicroflowLabel.widget.MicroflowLabelContext', 'RadioButtonList.widget.AttrRadioButtonList', 'RadioButtonList.widget.AssocRadioButtonList', 'SimpleChart.widget.SimpleChart', 'BootstrapRTE.widget.BootstrapRTE', 'CKEditorForMendix.widget.CKEditorForMendix', 'CKEditorForMendix.widget.CKEditorViewerForMendix', 'URLRedirector.Widget.URLRedirector', 'GoogleMaps.GoogleMapsOverview.googlemapsoverview', 'GoogleMaps.GoogleMapsAddMarker.googlemapsaddmarker', 'IFrame.widget.IFrame', 'MicroflowTimer.widget.MicroflowTimer', 'calendar.widget.calendar', 'ConfirmMicroflow.widget.confirmmicroflow', 'ConfirmMicroflow.widget.confirmmicroflowcontext', 'loginsystem.widget.LoginForm', 'loginsystem.widget.LoginButton', 'Signature.widget.Signature', 'EnumToggle.widget.EnumToggle', 'FormLoader.widget.FormLoader', 'DynamicImage.widget.DynamicImage', 'DynamicImage.widget.StaticImage', 'TimePicker.widget.TimePicker', 'formatstring.widget.formatstring', 'formtooltip.widget.TooltipImage', 'formtooltip.widget.TooltipLink', 'refkit.widget.InputRefSelector', 'FusionChartsWidget.FusionChartsWidget' ] Running "dojo:dist" (dojo) task Building Dojo... Error Warning: Task "dojo:dist" failed. Use --force to continue. Aborted due to warnings. I have cleaned the deployment directory. After getting this error, if I run the project locally it completes without errors and runs OK, but trying to create the deployment package again gives this error. Why does it run successfully locally, yet fail to produce the deployment package? Edit: Here's some warnings and errors from the build-report.txt file: warn(202) AMD module specified and absolute module identifier that is not consistent with the configuration and filename module: BootstrapRTE/lib/external/google-code-prettify/runprettify; specified: google-code-prettify module: CKEditorForMendix/widget/lib/jquery; specified: jquery module: refkit/lib/jquery; specified: jquery warn(205) Module not tagged as pure AMD yet it contains AMD API applications. module: dojox/main module: dojox/date/buddhist module: dojox/date/hebrew module: dojox/date/islamic module: dojox/date/persian module: dojox/date/posix module: dojox/date/relative module: dojox/date/timezone module: dojox/date/umalqura module: dojox/date/buddhist/Date module: dojox/date/buddhist/locale module: dojox/date/hebrew/Date module: dojox/date/hebrew/locale module: dojox/date/hebrew/numerals module: dojox/date/islamic/Date module: dojox/date/islamic/locale module: dojox/date/persian/Date module: dojox/date/persian/locale module: dojox/date/umalqura/Date module: dojox/date/umalqura/locale module: mxui/dom module: mxui/mxui module: mxui/html/parser module: mxui/lib/form/InlineForm module: mxui/lib/form/FormBase module: mxui/mixin/Stateful module: mxui/mixin/ValidationHelper module: mxui/widget/Button module: mxui/widget/WidgetBase module: mendix/lang module: mendix/lib/Error module: mendix/lib/MxContext module: mendix/lib/MxMetaObject module: mendix/lib/MxObject module: mendix/lib/ObjectValidation module: HTMLSnippet/widget/HTMLSnippet module: BootstrapRTE/lib/external/google-code-prettify/runprettify module: CKEditorForMendix/widget/lib/jquery module: Signature/widget/Signature module: refkit/lib/jquery module: widgets/widgets warn(206) Module included multiple dojo.provide applications. module: CheckboxSelector/widget/checkboxselector; provides: widgets/widgets,CheckboxSelector/widget/checkboxselector module: MicroflowLabel/widget/MicroflowLabel; provides: MicroflowLabel/widget/MicroflowLabel,MicroflowLabel/widget/MicroflowLabelContext warn(207) dojo.provide application identifier inconsistent with module identifier. module: CheckboxSelector/widget/checkboxselector; provide: widgets/widgets module: MicroflowLabel/widget/MicroflowLabel; provide: MicroflowLabel/widget/MicroflowLabelContext warn(209) Missing or empty package.json. filename: C:/Program Files/Mendix/5.16.0/modeler/tools/grunt/dojox/package.json filename: C:/Program Files/Mendix/5.16.0/modeler/tools/grunt/mxui/package.json filename: C:/Program Files/Mendix/5.16.0/modeler/tools/grunt/mendix/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/HTMLSnippet/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/CheckboxSelector/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/HelpText/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/MicroflowLabel/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/RadioButtonList/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/SimpleChart/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/BootstrapRTE/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/CKEditorForMendix/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/URLRedirector/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/GoogleMaps/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/IFrame/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/MicroflowTimer/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/calendar/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/ConfirmMicroflow/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/loginsystem/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/Signature/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/EnumToggle/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/FormLoader/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/DynamicImage/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/TimePicker/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/formatstring/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/formtooltip/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/refkit/package.json filename: D:/Mendix5/eServiceSuite/deployment/web/widgets/FusionChartsWidget/package.json filename: D:/Mendix5/eServiceSuite/deployment/data/tmp/widgets/package.json warn(216) dojo/has plugin resource could not be resolved during build-time. plugin resource id: dojo-bidi?./BidiMixin; reference module id: dijit/WidgetBase plugin resource id: dojo-firebug?./firebug/firebug; reference module id: dojo/main plugin resource id: dom-addeventlistener?:./aspect; reference module id: dojo/on plugin resource id: host-browser?dom-addeventlistener?:../on:; reference module id: dojo/request/watch warn(224) A plugin dependency was encountered but there was no build-time plugin resolver. module: dijit/Fieldset; plugin: dojo/query module: dijit/RadioMenuItem; plugin: dojo/query module: dijit/Tree; plugin: dojo/query module: dijit/form/RadioButtonMixin; plugin: dojo/query module: dojo/request; plugin: dojo/request/default module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/node; plugin: dojo/node module: dojo/request/registry; plugin: dojo/request/default error(333) Missing dependency in legacy module. reference module: formtooltip/widget/FormTooltip; dependency: mxui/widget/MasterTooltip reference module: formtooltip/widget/TooltipImage; dependency: mxui/widget/Image It looks like the issue might be with the formtooltip widget. I'm not sure how important the other warnings are - is there anything to worry about here?
asked
3 answers
3

Have you updated the calendar widget recently? From the releasenotes:

Known issues

The calendar widget versions smaller than 4.2 are incompatible with Modeler 5.16, please update to a recent version.

If that doesn't solve it, you can check the dojo build report at %project-dir%/deployment/data/tmp/dojo/build-report.txt

Please let us know here when you've found the culprit, we'd obviously like to fix this :)

answered
3

You can find out what the exact issue is by following Achiel his directions. I know there is an issue with the Tooltip image widget, as it uses methods which are not exposed in the Client API. With 5.16 now actually compiling custom widgets against the API, this widget causes a problem.

From the list you posted I also noticed a widget which can also be replaced with default platform behaviour (E.g. Confirm Microflow). It is adviced to remove any widgets which are not used in your project.

answered
3

Hi, I just updated to 5.16.1 and I'm facing the same issues. I have removed all widgets that are not used and there is not one of the abovementioned widgets. The abovementioned folder build folder is empty (should it be?). Do I now need to remove every widget separately to find the culprit? I find it rather annoying that all of a sudden widgets are validated (basically good) but when it goes wrong there's no telling which widgets aren't fulfilling the criteria!

answered