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.

Missing variable in example

See original GitHub issue

There’s an example here with an undeclared variable success:

https://github.com/InteractiveAdvertisingBureau/iabtcf-es/blob/master/modules/cmpapi/README.md#custom-commands

const songLyricCallback = (lyrics) => {

  if(success) { // <--- ERROR: undefined variable "success"

    console.log(lyrics)

  } else {

    console.error('Error: could not get song lyrics')

  }

}

(I’m not sure how to correct the example.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
dmdabbscommented, Apr 27, 2021

You’re right Rasmus. My apologies for not reading thoroughly and assuming that a sample code was a reference to samples in the specs where we’ve had inaccuracies in the past. I’m not familiar with this custom callbacks feature so will have to defer to someone who is.

0reactions
shortaflipcommented, Jul 8, 2021

iabtcf-es library pre-release v1.3.0-2 is live. The pre-release will be out for about one week so that the new changes can be used in your environments. If no problems are found the pre-release will transition to release v1.3.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples: Manage Missing Variable Values - SAS Help Center
Adding x and y together in an expression produces a missing result because the value of x is missing. The value of a...
Read more >
Tackling Missing Value in Dataset - Analytics Vidhya
Missing data is defined as the values or data that is not stored (or not present) for some variable/s in the given dataset....
Read more >
Missing Value Handling — Missing Data Types
The missing data is missing for an apparent reason. Often the mechanism that caused the missing data is easily inferred. This type is...
Read more >
Missing Values | Stata Learning Modules - OARC Stats - UCLA
Whenever you add, subtract, multiply, divide, etc., values that involve missing a missing value, the result is missing. In our reaction time experiment,...
Read more >
What are the Different Types of Missing Data? - Displayr
Missing data is either: structurally missing, missing completely at random (MCAR), missing at random, or nonignorable (also known as missing not at random)....
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