I am trying to build a widget which will retrieve the place links if we type an address or drop a pin at a location. It will provide links to Google 3D, Birdseye view. But when I start the server and import the widget in my application it shows up this error that widget cannot be created. When I look into the console, it shows that lang. hitch scope is null. Here is the screenshot for your reference.
Rohit,
Wow this widget is an absolute mess. Did you just copy some JS sample html source into the Widget.html and think that it would work? Your Widget.html has many divs that have ids and widgetids this is not normal for a WAB widget. You have many data-dojo-attach-events specified in the html that do not exist in the Widget.js.
Robert, Yes I am trying to see how this widget works for the web applications. Have used chrome console for that.
I do not intend to copy but would like to replicate something similar to that for one of my projects. Hence I am trying on that.
Rohit,
Well you can get your widget to at least load if you add all the data-dojo-attach-events to your widget.js and make sure to add a name property to your widget.js as well.