I have several cmv widgets enabled, some I have built myself. All work great, but when I enable the Measurement widget I am getting this error upon loading the app:
dojo/parser::parse() error TypeError: Cannot read property 'toString' of undefined
Uncaught Error: uniqName_4: parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. Must pre-load all supporting widgets before instantiation.
Here is my configuration:
measure: {
include: true,
id: 'measurement',
type: 'titlePane',
canFloat: true,
path: 'gis/dijit/Measurement',
title: '<i class="fa fa-share-alt fa-lg"></i> <i> Measure</i>',
open: false,
position: 4,
options: {
map: true,
mapClickMode: true,
defaultAreaUnit: units.ACRES,
defaultLengthUnit: units.FEET
}
}
Any ideas what the problem might be?