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

1217
0
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
0 Replies