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.

TypeError: Array.includes is not a function @0.0.4

See original GitHub issue

I got this error message in both client (Chrome v.57) & server code.

I20161228-11:17:22.178(7)? Exception in setInterval callback: TypeError: Array.includes is not a function
I20161228-11:17:22.180(7)?     at Object.runAV (node_modules\simpl-schema\dist\clean\setAutoValues.js:51:15)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
yanickrochoncommented, Jan 6, 2017

Personally, I prefer @eluck 's last snippet. It’s small, and essentially the only thing required. Adding the entire babel-polyfill seems overkill.

Preferably, this should be refactored in this source, though.

6reactions
DerekTBrowncommented, Jan 14, 2017

Created a PR (#42) to fix this issue. Given the project already requires underscore, I opted for using _.contains.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: includes is not a function in JavaScript | bobbyhadz
The "includes is not a function" error occurs when the includes() method is called on a value that is not of type string...
Read more >
Object.includes is not a function in old Chrome - Stack Overflow
I assume your obj variable is actually an array, as seen in the first line of your logs.
Read more >
TypeError: includes is not a function in JavaScript - Linux Hint
The “includes is not a function” type error occurs when the includes() method is accessed on a value that is neither of the...
Read more >
How to solve includes is not a function in JavaScript - Reactgo
The “includes is not a function” error occurs when we call a includes() method on a value other than the strings or arrays....
Read more >
Node.js v19.3.0 Documentation
stack <Object> A stack trace of the function. The arrays contains information about the expected and actual number of calls of the functions...
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