wordcloud2.js icon indicating copy to clipboard operation
wordcloud2.js copied to clipboard

Keep getting many null is not an object errors

Open TheDude70 opened this issue 2 years ago • 0 comments

The below part of the code keeps getting hit regularly and errors out due to el being null or undefined. How to solve this issue?

`/js/wordcloud2.js at line 189:21

  if (typeof el === 'string') {
    elements[i] = document.getElementById(el)
    if (!elements[i]) {
      throw new Error('The element id specified is not found.')
    }
  } else if (!el.tagName && !el.appendChild) {

    throw new Error('You must pass valid HTML elements, or ID of the element.')
  }
})`

TheDude70 avatar May 27 '23 03:05 TheDude70