Skip to content

Keep getting many null is not an object errors #202

Description

@TheDude70

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.')
  }
})`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions