Waziup / WaziCloud

WAZIUP Cloud and local platform
31 stars 28 forks source link

browser compatilibity of keycloak-admin-client #158

Closed teegwende closed 7 years ago

teegwende commented 7 years ago

Hi I can't run locally neither waziup-dashboard master branch neither notif branch on iceweasel-firefox ESR 45.9. when i run it the browser launches but it just shows localhost:3000 and nothing else. I opened the web console to check and I see "SyntaxError: invalid for/in left-hand side" .

See attached some pictures

details_of_error page_obtained

Notice that i can run it on google chrome (version 58.0.3)

cdupont commented 7 years ago

The wrong line seems to be here: https://github.com/bucharest-gold/keycloak-admin-client/blob/18cc66f7b51e4964844c369b313cf3cd4602c618/lib/kc-admin-client.js#L16

Your version of Firefox does no seem to be compatible with the for-const construct: https://stackoverflow.com/questions/31987465/ecmascript-2015-const-in-for-loops

@teegwende could you open an issue/pull request with keycloak-admin-client, asking them to replace the const by a let?

cdupont commented 7 years ago

@teegwende could you update this issue? It seems that the problem was solved upstream.