Esri / cedar

JavaScript Charts for ArcGIS
https://esri.github.io/cedar
258 stars 238 forks source link

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

Closed fionajrenton closed 5 years ago

fionajrenton commented 5 years ago

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 commented 5 years ago

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

jgravois commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Thanks this worked.