question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • 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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
williamdrakecommented, Sep 19, 2019

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

2reactions
christophlinggcommented, Sep 26, 2019

when I refresh the page, the js error is gone

Read more comments on GitHub >

github_iconTop Results From Across the Web

"e.map is not a function" error on time series #2687 - GitHub
map is not a function " in the dev console when trying to generate a line series. I have checked the superset logs...
Read more >
e.map is not a function - json - Stack Overflow
map only works on variables which has been declared like following or having data like following let e = [] //or let e...
Read more >
Receiving error while iterating over a map in javascript in LWC
It looks like the Javascript object you have boatData is not an Array and hence you get an exception that .map is not...
Read more >
map is suddenly not a function? - JavaScript
The .map is not a function error. This error is usually due to the fact that .map() is an array method, and does...
Read more >
How To Fix object.map is not a function Error in JavaScript
To solve the object.map is not a function error, first figure out the shape of the data you are working with and then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found