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.

options.values (check for values containing undefined)

See original GitHub issue

Updating from 1.4.2 to 1.5.2, I’m getting a options.values.forEach is not a Function in lib/connection.js line 688

As options.values is an Object (not an array) when I checked it out, for me a simple workaround would be: Object.values(options.values).forEach is not a Function

But I do not know the possible side effect of this work around in the newer version. Could someone inform me if this would have side effects?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sidorarescommented, Feb 15, 2018

yeah, it’s off by default. I’ll try to see what can be improved in error handling though, if we can’t do same “Objects are turned into key = ‘val’ pairs” transformation for execute we should have error message explaining this

0reactions
mathieumagalhaescommented, Feb 15, 2018

Wasn’t passing the namedPlaceholders option which causes the exception to occur. Thanks for clarifying

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting undefined when trying to send select value to other page
What I'm trying to do is to get the value from the select tag and use it in page2 . For example, is...
Read more >
value is undefined in select_options and causes error ... - GitHub
So the value passed into the select_options function is undefined . And this might happen when: It has a value attribute instead of...
Read more >
Null, Undefined and Option | ReScript Language Manual
It means "a value of type option is either None (representing nothing) or that actual value wrapped in a Some". Note how the...
Read more >
7 Tips to Handle undefined in JavaScript - Dmitri Pavlutin
A detailed article about 'undefined' keyword in JavaScript. 7 tips on how to handle correctly 'undefined' and increase code durability.
Read more >
how to skip undefined value in javascript - Industry Today
Null is literal in JavaScript. Tip 3: Check the property existence. If you pass less arguments in function call then, that parameter will...
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