You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2022. It is now read-only.
@declare(BaseWidget, _WidgetsInTemplateMixin)
class Widget implements IWidget {
AND call the startup of _WidgetsInTemplateMixin
public startup(args: any): void {
BaseWidget.prototype.startup.call(this, args);
_WidgetsInTemplateMixin.prototype.startup.call(this, args);
Another option is not to use strict mode in your tsconfig "noImplicitUseStrict": true which then allows:
public startup(args: any): void {
var self: any = this;
this.inherited(arguments);
This should probably be added to the documentation (easiest) or we add a new option "will your widget contain templated dojo widgets" which stubs this out
The text was updated successfully, but these errors were encountered:
Just spent an hour scratching my head on this one. If you add templated widgets to your html e.g.
You both need to mix in the template:
AND call the startup of _WidgetsInTemplateMixin
Another option is not to use strict mode in your tsconfig "noImplicitUseStrict": true which then allows:
This should probably be added to the documentation (easiest) or we add a new option "will your widget contain templated dojo widgets" which stubs this out
The text was updated successfully, but these errors were encountered: