Opened 11 years ago

Closed 11 years ago

#13242 closed defect (invalid)

"mixin #1 is unknown" on custom widget

Reported by: ebengtso Owned by:
Priority: high Milestone: tbd
Component: General Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:


I get the error "mixin #1 is unknown" when loading a custom widget after moving from 1.6 to 1.7.0b1

Here a snippet for the custom widget:

dojo.provide("a.utils.widget.B"); dojo.declare(

"a.utils.widget.B", [dijit._Widget, dijit._Templated],

{ ... });

Apparently this message goes away if I add the following:

dojo.require("dijit._Widget"); dojo.require("dijit._Templated");

Change History (1)

comment:1 Changed 11 years ago by ben hockey

Resolution: invalid
Status: newclosed

adding the calls to dojo.require is in fact what you should have been doing all along. it's very possible that it did work in 1.6 but it was only by luck. in 1.7 many dijit widgets changed such that it seems you're no longer lucky enough to have dijit._Templated pre-loaded for you. make sure you always dojo.require any code you have a dependency on.

Note: See TracTickets for help on using tickets.