-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"TypeError: t.indexOf is not a function " javascript error in http://localhost/maps/new route #5882
Comments
@lazyfahim Just tried but cannot reproduce this. Does this problem still exist? If so which version? 2.10? |
I have this same problem following instructions to install docker spcgeonode |
I have tested that one and can confirm a regression with docker master spc (haven't tested the "offical" docker stack yet). The problem is:
which translates after a build to:
In our case For me it looks like This wonders as it is checked here: I haven't tested yet if going back to ms-client 2.0.1 or 2.0.0 could solve it. |
It is most likely a MapStore issue. I guess we will need to do a new
release of the mapstore client asap. There are other defected in the latest
mapstore update I already have recognized.
Il giorno dom 29 mar 2020 alle ore 08:07 Syed Mohammad Fahim Abrar <
notifications@github.com> ha scritto:
… i think you have to add google map api key to re produce that scenario
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5882 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJYARPPZHW4QWGHWEVTOS3RJ3QSRANCNFSM4LLZ3Y5A>
.
--
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A - 55054 Massarosa (LU) - Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
|
@afabiani thanks. I think it could be solved easily by just making sure version in state is always a string. Unfortunately, I cannot help here as I'm blocked with mapstore development on master because of: GeoNode/geonode-mapstore-client#53 If you have any idea what and why the dev env changed I 'm all open ears. |
@t-book those should be recent changes introduced by @allyoucanmap in order to make more easy the configuration of the dev environment. I'm going to ask him to reply to your questions. It is probably better to open issues directly on the MapStore repo in order to have more chances to get a reply soon. |
Thanks @afabiani |
@t-book so this issue seems to be happening only on SPC-Geonode? I'm wondering how the GeoNode version could be translated into the ${mapstore2.version} and also how is it possible that this does not happen on a standard setup? Could be an issue with older spc geonode docker images? |
I only have tested on SPC yet based on this comment #5882 (comment)
I haven't found any evidence so far how this should work. But did not have a closer look as the new mapstore dev setup on master blocked me.
Good idea but the question why this suddenly fails remains.
On my local paver setup |
Fixes #5882 Mapstore fails with version 3.0.0
Expected Behavior
The page should load a map.
Actual Behavior
Instead of loading map it is showing
this image and giving a javascript error:
TypeError: t.indexOf is not a function at validateVersion (ms2-geonode-api.js:38) at ms2-geonode-api.js:91 at p (ms2-geonode-api.js:91) at e.componentDidUpdate (ms2-geonode-api.js:91) at ou (ms2-geonode-api.js:75) at e.unstable_runWithPriority (ms2-geonode-api.js:83) at Ni (ms2-geonode-api.js:75) at iu (ms2-geonode-api.js:75) at Bs (ms2-geonode-api.js:75) at ms2-geonode-api.js:75 at e.unstable_runWithPriority (ms2-geonode-api.js:83) at Ni (ms2-geonode-api.js:75) at Hi (ms2-geonode-api.js:75) at Fi (ms2-geonode-api.js:75) at Rs (ms2-geonode-api.js:75) at Object.enqueueSetState (ms2-geonode-api.js:75) Va @ ms2-geonode-api.js:75
Steps to Reproduce the Problem
1.Login as admin
2. go to Url: http://localhost/maps/new
Specifications
The text was updated successfully, but these errors were encountered: