I get the following error when used dojo/parserin my code.
parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin.
I have
define([
"dojo/_base/declare",
"dijit/_WidgetBase",
"myApp/base/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dojo/text!../templates/MyTemplate.html",
"dojo/i18n!../nls/Localized",
"myApp/js/utils/hint",
"dijit/form/ValidationTextBox",
"dijit/form/SimpleTextarea",
"dijit/form/Button",
"dojo/parser",
"dojo/domReady!"
], function (
declare,
_WidgetBase,
_TemplatedMixin,
_WidgetsInTemplateMixin,
template,
l10n,
hint
) {
'use strict';
return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
widgetsInTemplate: true,
l10n: l10n,
templateString: template,
});
});
I did some research and realized that this could be related to dependencies and order. I added an attribute widgetsIntemplate, but still don't play dice. This only happens on the first page load.
Can anyone help?
source
share