Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep getting many null is not an object errors #202

Open
TheDude70 opened this issue May 27, 2023 · 0 comments
Open

Keep getting many null is not an object errors #202

TheDude70 opened this issue May 27, 2023 · 0 comments

Comments

@TheDude70
Copy link

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.')
  }
})`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant