4.14.4 template upgrade error - moment.js
We updated our Essentials install 4.14.3 to 4.14.4. Went to update the viewer template from 4.14.3 to the 4.14.4 vte. Template updated and we overwrote the files during compare. In Essentials admin we upgraded our viewers.
When we go to load up the viewer it fails to load when trying to grab Resources/Scripts/moment/moment.js. Going to this location in wwwroot and this file does not exist but moment-timezone-with-data.js does.
When looking at a dev install with 4.14.3 template, it seems to want to grab the moment-timezone-with-data.js file.
So 4.14.4 template is looking for Resources/Scripts/moment/moment.js and it does not exist. Old templates look for Resources/Scripts/moment/moment-timezone-with-data.js which does exist.
-
Hi Andrew,
Our default viewer configuration loads the moment-timezone-with-data.js file. I'm not sure what would be requesting the moment.js file as that is not used by Essentials.
If there is custom configuration that is requesting this file, an option would be to download the latest Esri JSAPI 3.x version and deploy that library in the location requested.
Thanks, Stefan
0 -
Hi Stephan,
We have just encountered this same issue with Essentials 4.14.4 after configuring the viewer to work with the offline version of the Esri JS API that is shipped with Essentials.
When the viewer loads it tries to load moment.js but fails as it is not present in the local copy of the Esri js file (/3.38/moment). We had to grab a copy of moment.js from the online API and add it to the local /3.38/moment folder to fix the issue.
So it seem that Essentials requires this file to be included in the local API package.
Thanks
Owen
1
Please sign in to leave a comment.
Comments
2 comments