Cannot read property 'setAttribute' of undefined
See original GitHub issueHi.
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:
- Created 5 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed it in 2.4.2
Even without a Vue wrapper, working with a chart is convenient.