superset icon indicating copy to clipboard operation
superset copied to clipboard

"e.map is not a function" error on time series

Open robert-digit opened this issue 9 years ago • 11 comments

Since upgrading to 0.17.5, and now on 0.17.6 alpha1, I get "TypeError: e.map is not a function" in the dev console when trying to generate a line series.

  • [X] I have checked the superset logs for python stacktraces and included it here as text if any
  • [X] I have reproduced the issue with at least the latest released version of superset
  • [X] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.17.5 and 0.17.6 alpha 1

Expected results

Time series chart renders

Actual results

An empty viz area and this stacktrace in the dev console. Unfortunately the JS is minified.

explorev2.0.17.6-alpha.1.entry.js:144 Uncaught TypeError: e.map is not a function
    at explorev2.0.17.6-alpha.1.entry.js:144
    at r.utils.state.a (explorev2.0.17.6-alpha.1.entry.js:144)
    at r.utils.state.update (explorev2.0.17.6-alpha.1.entry.js:144)
    at SVGSVGElement.<anonymous> (explorev2.0.17.6-alpha.1.entry.js:144)
    at explorev2.0.17.6-alpha.1.entry.js:34
    at $ (explorev2.0.17.6-alpha.1.entry.js:34)
    at Array.ql.each (explorev2.0.17.6-alpha.1.entry.js:34)
    at Array.e (explorev2.0.17.6-alpha.1.entry.js:144)
    at Array.Oa.call (explorev2.0.17.6-alpha.1.entry.js:34)
    at Object.b [as generate] (explorev2.0.17.6-alpha.1.entry.js:39)

Steps to reproduce

Try to create a time series chart in recent versions of Firefox or Chromium/Chrome using 0.17.5 or 0.17.6 alpha1

Note- it looks like e.map is defined just a bit earlier as seen in the screenshots here.

screen shot 2017-04-27 at 14 39 55 screen shot 2017-04-27 at 14 40 10

robert-digit avatar Apr 27 '17 15:04 robert-digit

Incidentally, if I can set a flag to build without minifying I'll do that and check it out.

robert-digit avatar Apr 27 '17 15:04 robert-digit

I have encountered same issues, waiting for solution!

GeorgeGuoCN avatar Apr 28 '17 03:04 GeorgeGuoCN

Is this still an issue? I couldn't reproduce it on current master (targeting 0.18.0-alpha.4). Regarding the note, I think that is just the result of the minifier using "e" as the name for both the array and the argument to the map function.

jeffcarey avatar May 13 '17 04:05 jeffcarey

You get this on all time series line charts? Including the examples we ship with? Anything special about your environment?

mistercrunch avatar May 13 '17 22:05 mistercrunch

Notice: this issue has been closed because it has been inactive for 344 days. Feel free to comment and request for this issue to be reopened.

mistercrunch avatar Apr 23 '18 07:04 mistercrunch

I use latest version,but this issue is still there!

zhouhoo avatar Sep 15 '19 13:09 zhouhoo

I'm getting this issue when trying to load graphs from the Explore function from SQL Lab.

williamdrake avatar Sep 19 '19 12:09 williamdrake

Getting it as well. Any idea on how to fix it?

afilipchik avatar Sep 25 '19 17:09 afilipchik

We're seeing it too. Occurs when doing graphs from SQL Lab > Explore. Doesn't happen when creating graphs directly from Charts

jjal avatar Sep 25 '19 21:09 jjal

when I refresh the page, the js error is gone

christophlingg avatar Sep 26 '19 17:09 christophlingg

Oh cool, that works here too.

jjal avatar Oct 01 '19 15:10 jjal