Solved! Go to Solution.
When developing with the ArcGIS API for JavaScript, a web server is required. This means that web pages and apps using the ArcGIS API for JavaScript need to be accessed over http:// (or https://) rather than file://. To meet this requirement, install and configure a web server. Web server software is available free of charge for all operating systems. For Windows, IIS is recommended. On Mac OS and Linux, Apache is a popular option but any web server will do. The important point is web pages using the ArcGIS API for JavaScript are served over http.
When developing with the ArcGIS API for JavaScript, a web server is required. This means that web pages and apps using the ArcGIS API for JavaScript need to be accessed over http:// (or https://) rather than file://. To meet this requirement, install and configure a web server. Web server software is available free of charge for all operating systems. For Windows, IIS is recommended. On Mac OS and Linux, Apache is a popular option but any web server will do. The important point is web pages using the ArcGIS API for JavaScript are served over http.