TypeError: setting getter-only property "event"
See original GitHub issueI’m using d3-ng2-service to integrate D3 into Angular, now I’m also trying to use dc.js (3.0 branch), but I get errors when trying to draw a simple barchart, because d3-ng2-service builds it’s own D3 with the modularised parts, and dc.js brings another instance of D3 (copying inbetween gives read-only errors).
TypeError: setting getter-only property "event"
Stack trace:
_dc/dc.coordinateGridMixin/_chart._brushing@webpack:///./node_modules/dc/dc.js?:3956:9
@kum-deepak did you touch #1175 yet? Can’t follow your reference to it… It feels the solution for me lies within…
How can I inject my instance of D3 into DC.js?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
JavaScript TypeError - Setting getter-only property "x"
This JavaScript exception setting getter-only property works in strict-mode only and occurs if the user tries to set a new value to a...
Read more >TypeError: setting getter-only property "x" - JavaScript
The JavaScript strict mode-only exception "setting getter-only property" occurs when there is an attempt to set a new value to a property for...
Read more >TypeError: setting getter-only property "delegateTarget" · Issue ...
I'm using cash-dom, not jQuery. And here's the cash-dom's code: Object.defineProperty(event, 'delegateTarget', { configurable: true, get: ...
Read more >TypeError: "setting getter-only property "value" - Stack Overflow
Issue. You are trying to set the value property of string object which is wrong. string doesn't have any property called value ....
Read more >TypeError: setting getter-only property "x"
There is an attempt to set a new value to a property for which only a getter is specified. While this will be...
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 Free
Top 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
@Justus-Maier can you please try the current 3.0 branch, it no longer tries to assign
d3.event
.Glad to hear it!