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.

TypeError: setting getter-only property "event"

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kum-deepakcommented, Apr 8, 2018

@Justus-Maier can you please try the current 3.0 branch, it no longer tries to assign d3.event.

0reactions
gordonwoodhullcommented, Apr 10, 2018

Glad to hear it!

Read more comments on GitHub >

github_iconTop 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 >

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