Cannot read property 'portalUrl' of undefined

736
3
09-23-2019 11:24 AM
BenjaminSkinner
New Contributor II

Hi there,

We have an application developed in version 1.4 of Web AppBuilder for Developer. The application includes a number of custom created widgets. 

We are now trying to alter the source of the ArcGIS Online map that is used in the application. When trying to load the app in Web AppBuilder for Developer (version 2.13), we get an 'invalid app' error, so the map source can not be set that way.

We have also tried altering lines 221 and 234 of config.json so that the map 'itemID:' and 'portalUrl' reflect our map and ArcGIS Online information, respectively. However, when viewing the application in a web browser it throws the type error 'Cannot read property 'portalURL' of undefined error, as well as the Uncaught TypeError: 'Cannot read property 'setAttribute' of undefined at setTiles'.

Does anyone have any ideas on how to correct these errors?

Thank you,

Ben 

0 Kudos
3 Replies
George_Thompson
Esri Frequent Contributor

Web AppBuilder for ArcGISWeb AppBuilder Custom Widgets‌ - Adding a wider audience.

--- George T.
BenjaminSkinner
New Contributor II

Thank you, George. I realize now I shared in the wrong help forum to begin with.

-Ben

0 Kudos
George_Thompson
Esri Frequent Contributor

No worries.

--- George T.
0 Kudos