define([ "require", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dijit/_AttachMixin", "dijit/_WidgetBase", "dojo/_base/declare", "dijit/form/TextBox", "./ChildWidget2" ], function(require, _TemplatedMixin, _WidgetsInTemplateMixin, _AttachMixin, _WidgetBase, declare) { return declare("app/widgets/MainWidget", [_WidgetBase, _AttachMixin, _TemplatedMixin, _WidgetsInTemplateMixin], { contextRequire: require, templateString: "
" // + "Hello World!!! " // this works as it's dijit + "
" // this doesn't work as it's trying to fetch ./node_modules/dojo/ChildWidget which seems to be // relative to dojo/parser dojo/parser + "
" }); });