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.

Cannot read property 'setAttribute' of undefined

See original GitHub issue

Hi.

I use apexcharts with Vue without Vue-apexcharts. I noticed a problem when creating a graph with the 'area' type. Created an example with an error, in CodPen the error is not tracked.

Code

Watch only mounted() method.

https://codesandbox.io/s/2855n9x4j

Explanation

  • What is the behavior you expect?

    • No errors when creating chart.
  • What is happening instead?

    • The chart is drawn, but we get an error message.
  • What error message are you getting?

    • Cannot read property ‘setAttribute’ of undefined

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
junedchhipacommented, Dec 16, 2018

Fixed it in 2.4.2

1reaction
avil13commented, Dec 9, 2018

Even without a Vue wrapper, working with a chart is convenient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS - Cannot read property 'setAttribute' of null - Stack Overflow
It is because all of your calls to document.getElementById are failing to find anything since there aren't any elements with those IDs.
Read more >
TypeError: Cannot read property 'setAttribute' of undefined
You are setting/using some values of an element where that element does not exist. you need to look into your JS section all...
Read more >
uncaught type error cannot read property set attribute of ...
When we create a custom ui component in Magento 2, it shows the console error “Uncaught TypeError: Cannot read properties of undefined (reading ......
Read more >
TypeError: Cannot read property 'setAttribute' of undefined
Currently I am using ckeditor version 4.5. 7. and in this version I am facing issue with "Uncaught TypeError: Cannot read property 'setAttribute'...
Read more >
Uncaught TypeError: Cannot read property ... - WordPress.org
Uncaught TypeError : Cannot read property 'setAttribute' of undefined ... Hi, When i upgrade website to 5.6, it's display error in admin area....
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