-
Notifications
You must be signed in to change notification settings - Fork 52
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
Uncaught ReferenceError in examples #135
Comments
The jQuery dependency has been removed in projectmesa/mesa@8c30840. |
At line 101 of my runcontrol.js is the fpsControl initialization. Is it different from yours?
|
I didn't see any |
Yes, I have Mesa 1.1.1 und Mesa-Geo 0.4.0 installed. I think I found the issue while writing this: |
Description
I tried to run the examples "geo_schelling_points" and "geo_sir". The socket opened but the interface on localhost:8521 did not show anything (only blank screen). The console in the browser showed the following error messages:
Uncaught ReferenceError: $ is not defined (at runcontrol.js:101:20)
andUncaught ReferenceError: elements is not defined (at (index):98:1)
.I expected it to load up the visualization elements.
I installed Mesa-Geo on Windows in a venv using the two commands:
I downloaded the examples and ran the code using
mesa runserver
inside the folder.After I added
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
to the head ofmodular_template.html
of the mesa installation, it worked. However I do not know and do not think, this is the right solution. At least it works for me, for now.If I missed anything important to reproduce this error or if I just did something the wrong way, I apologize and gladly add further information.
Looking forward to a response. Best regards!
The text was updated successfully, but these errors were encountered: