Victory: upgrading d3-scale to v2.4 is causing error in IE

Created on 31 May 2020  路  2Comments  路  Source: FormidableLabs/victory

https://github.com/FormidableLabs/victory/blob/7df06ba06f94fd9b332cf79b4f2b5cf6f9a9e354/packages/victory-histogram/package.json#L22

upgrading d3-scale to v2.4 is causing an error in IE in the following code
SCRIPT1004: Expected ';'

/***/ "./node_modules/d3-array/src/count.js":

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return count; });
function count(values, valueof) {
  let count = 0;
  if (valueof === undefined) {
->    for (let value of values) {
      if (value != null && (value = +value) >= value) {
        ++count;
      }
    }

Most helpful comment

Having the same issue.

All 2 comments

Having the same issue.

Was this page helpful?
0 / 5 - 0 ratings