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.

Internet Explorer bug: TypeError("Invalid attempt to spread non-iterable instance")

See original GitHub issue

I’m receiving a type error when performing a df.where lookup (and I also see the same error for df.show. This is only on IE, doesn’t occur on any other browser.

The error I get in my console is:

SCRIPT5022: Exception thrown and not caught
File: 0.chunk.js, Line: 9670, Column: 3

but by stepping into the debugger call stack, I was able to narrow it down to an exception being thrown at: _nonIterableSpread [Line: 147, Col: 1], dataframe.js

You can reproduce this error using the following minimal example:

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
  </head>


  <script src="https://gmousse.github.io/dataframe-js/dist/dataframe.js"></script>
  <script type="text/javascript">
    var df = new dfjs.DataFrame([
      {name: 'mark', age: '25'},
      {name: 'steve', age: '35'},
      {name: 'john', age: '35'}
    ]);
    debugger;
  </script>
</html>

And once in the debugger of IE, you will see there error for df.where and df.show(). Many other methods worked fine though, although I didn’t do an exhaustive check.

Looking forward to hearing your thoughts on what could be going on.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Gmoussecommented, Mar 23, 2019

Released in 1.4.1.

Thank you again @mbkupfer for the feedback and the PR. See you next time 😄.

0reactions
Gmoussecommented, Mar 24, 2019

@mbkupfer Hi !

Thank you too for your reporting !

You’re welcome to submit any PR in order to improve the library (for bug fixes, performance improvment, and new features)!

Don’t worry about reusables.js, I plan to refact (few part of codes such as reusables.js was realized few years ago when I was less pragmatic about coding 😄). I also plan add tutorials to make the contribution easier on the project.

I will be happy to see few contributors on the project, my available working time being limited on this library 😄.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Invalid attempt to spread non-iterable instance
Here's an example of invalid spread operator use: function trySpread(object) { let array; try { array = [...object]; console.log('No error', ...
Read more >
Uncaught TypeError: Invalid attempt to ... - WordPress.org
Hi @jules-colle , I am facing the issue, while mapping the conditional fields for radio button I tried using jquery updater and jquery...
Read more >
"Invalid attempt to spread non-iterable instance" error when ...
The attempt to save will fail with error Invalid attempt to spread non-iterable instance in the browser's console: mceclip0.png
Read more >
TypeError: 'x' is not iterable - JavaScript - MDN Web Docs
The JavaScript exception "is not iterable" occurs when the value which is given as the right-hand side of for...of , as argument of...
Read more >
Having an error called: invalid attempt to spread non-iterable ...
Having an error called: invalid attempt to spread non-iterable instance in order to be iterable, non-array objects must have a ...
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