Skip to content
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

Cedar not working - TypeError: keys.reduce is not a function #466

Closed
fionajrenton opened this issue Apr 23, 2019 · 4 comments · Fixed by #468
Closed

Cedar not working - TypeError: keys.reduce is not a function #466

fionajrenton opened this issue Apr 23, 2019 · 4 comments · Fixed by #468

Comments

@fionajrenton
Copy link

My code using cedar charts no longer works and even your documentation pages such as this one:
https://esri.github.io/cedar/
have the same error:
Uncaught TypeError: keys.reduce is not a function
at Object.appendCustomParams (append-custom-params.ts:32)
at Object.queryFeatures (query.ts:173)
at query.js:23
at Array.forEach ()
at queryDatasets (query.js:8)
at Chart.query (Chart.js:92)
at Chart.show (Chart.js:116)
at displayChart ((index):193)
at (index):181
at XMLHttpRequest.xhttp.onreadystatechange ((index):201)
Capturecedar

@fionajrenton
Copy link
Author

This worked fine two weeks ago. I was out last week.

@fionajrenton fionajrenton changed the title TypeError: keys.reduce is not a function Cedar not working - TypeError: keys.reduce is not a function Apr 23, 2019
@jgravois
Copy link
Contributor

thanks for reporting this.

the documentation page is currently loading a version of @esri/arcgis-rest-request that is too new.

we will have the problem fixed shortly. sorry for the inconvenience!

@tomwayson
Copy link
Member

The docs are fixed: https://esri.github.io/cedar/

@fionajrenton until we cut a new release, you may need to do as @jgravois suggests and ensure that your app is using version 1.x of the arcgis-rest-js packages.

@fionajrenton
Copy link
Author

Thanks this worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants