tomwanzek / d3-ng2-service

A D3 service for use with Angular.
MIT License
205 stars 42 forks source link

has no exportted member 'ThresholdArrayGenerator'. #126

Open javico2609 opened 6 years ago

javico2609 commented 6 years ago

/node_modules/d3-ng2-service/src/bundle-d3"' has no exportted member 'ThresholdArrayGenerator'. ed member 'ThresholdArrayGenerator'

chilloot commented 6 years ago

Seeing this too, possibly related to this change? https://github.com/DefinitelyTyped/DefinitelyTyped/pull/25450

dsokac commented 6 years ago

Same issue... I do not get it why it appears in 1.15.0 version :/

bvuong commented 6 years ago

Same, seems like DefinitelyTyped/DefinitelyTyped#25450 was released as a patch for d3-array and d3-contour even though it is a breaking change. Is there any way this can be released as a backwards-compatible minor version or major version change instead?

For more context, my project depends on d3-ng2-service, which is pinned to a minor version. This change now causes the error:

ERROR in node_modules/d3-ng2-service/index.d.ts(2,65): error TS2305: Module '"/root/project/client/node_modules/d3-ng2-service/src/bundle-d3"' has no exported member 'ThresholdArrayGenerator'.

I don't think there is any workaround on my end since I don't have any control over d3-ng2-service, but please let me know if there is!

sarath125 commented 6 years ago

Same issue...

jcollard commented 6 years ago

:+1: I am also experiencing this issue starting today.

jcollard commented 6 years ago

Temporary fix on my fork: https://github.com/jcollard/d3-ng2-service/tree/jcollard/fix-thresholdarraygenerator

Run npm install git://github.com/jcollard/d3-ng2-service.git#jcollard/fix-thresholdarraygenerator

dsokac commented 6 years ago

@jcollard, after that I got error that "d3-ng2-service" is not found :/ .

jcollard commented 6 years ago

@dsokac I've updated the branch to include a prepare script which should build the package from that repository. Let me know if you continue to experience an issue.

dsokac commented 6 years ago

@jcollard Thank you!!!!! It is ok now.... may I ask you to e-mail me if there will be official fix so I can actually use the normal way of using d3-ng2-service module... ( danisoka@gmail.com ) is my other e-mail that I check regularly :)

sarath125 commented 6 years ago

Hi My issue got resolved ,i am using angular 6 and i installed d3-ng2-service but it is not compatable for angular 6 when i Changed package to npm i d3 (Updated Package)

dsokac commented 6 years ago

@sarath125 did you use the fix introduced by @jcollard ?

sarath125 commented 6 years ago

@dsokac No i changed package d3-ng2-service to npm i d3 then it started working

denisname commented 6 years ago

Problem should be solved with latest @types/d3-array version: 1.2.4.

ZeevKatz commented 5 years ago

@javico2609 @chilloot @dsokac @bvuong @sarath125 @denisname @jcollard Hi everyone! It seems like this repository not maintained anymore, so I created a new repository (and published it to npm) with a fix for this issue. Here is a link to ngx-d3

dsokac commented 5 years ago

@ZeevKatz Thank you a lot! However, I am not working on Angular 2 project but I hope this will help future wanderers :D ! And me, somewhere in the future.