Cannot load widget

893
5
08-14-2017 09:57 AM
StahlyEngineering
New Contributor III

I created an instance of the WAB server on my machine to debug a widget from a previous question I had.

On that instance I can add a previously developed widget "GetParcelRecords", and load an app with good results.

However if I change the manifest, by renaming the widget and the internal files accordingly, adding the widget throws the following error:

FeatureActionManager.js?wab_dv=2.5:174 Uncaught TypeError: Cannot read property 'en-us' of undefined
    at Object.<anonymous> (FeatureActionManager.js?wab_dv=2.5:174)
    at Object.forEach (init.js:70)
    at Object.registerWidgetFeatureActions (FeatureActionManager.js?wab_dv=2.5:162)
    at Object.<anonymous> (FeatureActionManager.js?wab_dv=2.5:207)
    at init.js:63
    at visitBigSection (utils.js?wab_dv=2.5:120)
    at Object.visitElement (utils.js?wab_dv=2.5:84)
    at Object.c.visitElement (ConfigManager.js?wab_dv=2.5:188)
    at Object._reRegisterWidgetActions (FeatureActionManager.js?wab_dv=2.5:204)
    at Object._onAppConfigChanged (FeatureActionManager.js?wab_dv=2.5:252)

I have attempted to add the Demo widget and doing so results the same error.

I suspect that there is some fault with the server or its dependencies. Is there a way to check for that?

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Is your browser and OS set to use the English language?

0 Kudos
StahlyEngineering
New Contributor III

Yes on both counts.

We are getting frequent server stoppages due to bad manifests, could that be related?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sounds like it would be related. This is going to be a hard on to diagnose.

0 Kudos
StahlyEngineering
New Contributor III

Our IT caught the following error:

SyntaxError: Unexpected token }

    at Object.parse (native)

    at Object.me.readFileSync (C:\WebAppBuilderForArcGIS\server\node_modules\jso

nfile\lib\jsonfile.js:23:15)

    at getRepoItemFromFile (C:\WebAppBuilderForArcGIS\server\rest\repo.js:1:5178

)

    at Object.watchDir.changed (C:\WebAppBuilderForArcGIS\server\rest\repo.js:1:

1564)

    at FSWatcher.<anonymous> (C:\WebAppBuilderForArcGIS\server\rest\repo.js:1:21

44)

    at emitTwo (events.js:87:13)

    at FSWatcher.emit (events.js:172:7)

    at FSWatcher.<anonymous> (C:\WebAppBuilderForArcGIS\server\node_modules\chok

idar\index.js:176:15)

    at awfEmit (C:\WebAppBuilderForArcGIS\server\node_modules\chokidar\index.js:

193:9)

    at FSWatcher.<anonymous> (C:\WebAppBuilderForArcGIS\server\node_modules\chok

idar\index.js:296:9)

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sounds like a bad install.

0 Kudos