getting Uncaught SyntaxError: Unexpected token { error when using downloaded arcGis API in PC without internet

1943
1
05-29-2021 03:16 AM
Praneethrockz
New Contributor

I am trying to implement ARCGIS API offline. I have downloaded the zip file from the site and followed the following changes , changed the baseUrl to my apache IP copied the files to /var/www/html/ and replaced all occurances of https with http in dojo.js and init.js files (My server users http).

After that , i used the html code given in the installation isntructions to check if the installation is successful or not.

I tried opening/running the html in machines with internet , it worked perfectly, but when i try to run it in machines without internet connect , it shows "Uncaught syntaxError".

Please FInd the attached screenshot.
I feel like it has something to do with "http://www.w3.org/2000/svg" in line number 68 in init.js ,but i dont know how to solve the error.

0 Kudos
1 Reply
MonicaMohan
New Contributor

Please check the version of the browser. I encountered the same error. Only the supported versions of the browser mentioned in the ArcGIS API for JavaScript System Requirements page can render the API correctly.

In my case, I used Google Chrome v62.x.x whereas the supported version of Chrome was v99.x.x or later.

0 Kudos