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?
Is your browser and OS set to use the English language?
Yes on both counts.
We are getting frequent server stoppages due to bad manifests, could that be related?
Sounds like it would be related. This is going to be a hard on to diagnose.
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)
Sounds like a bad install.