-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to run demo locally #7
Comments
This is a little hard to help debug without more info. The local demos should work okay. Did you download the entire repository and then try to run the main demo? Are you using a web server on your computer? (you do not want to navigate to the demo's |
Sorry, this is entirely my fault. I didn't clone the repo and try to run the main demo, but rather copied files one by one. The problem was: it tried to load config.js from http://config.js/ -- that's why I was assuming that it is required from esri. This now works, but I still have no idea how config.js is loaded. Regards |
No worries and glad you got it working. As for config.js, we instruct Dojo (what the Esri JSAPI is built on top of) to become aware of other JavaScript resources in addition to the modules that it comes with out of the box. In our demos, we inform it that we need to be able to reference some local js files like this: |
This answers all my questions. Thanks |
Hi,
Not a JS dev here. I tried to run the main demo locally, but it fails to load config.js.
From what I can see, esri requires config.js to be publicly available right? If yes, is there a workaround this?
Cheers
The text was updated successfully, but these errors were encountered: