Internet Explorer bug: TypeError("Invalid attempt to spread non-iterable instance")
See original GitHub issueI’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:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released in 1.4.1.
Thank you again @mbkupfer for the feedback and the PR. See you next time 😄.
@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 😄.