You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add console.log to drag-zoom-2.component.ts in d3-ng2-demo project:
ngOnInit() {
let d3 = this.d3;
console.log('d3.csv:', d3.dsv);
console.log('d3.csv:', d3.csv);
console.log('d3.csv:', d3.tsv);
let d3ParentElement: Selection<HTMLElement, any, null, undefined>;
//.....
Start local server:
npm run start
Expected result: Application is loaded successfully without errors. Code of dsv,csv,tsv methods displayed.
Actual result: Application is loaded with errors below:
client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:59:30
Property 'dsv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'.errors @ client?93b6:76
client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:60:30
Property 'csv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'.errors @ client?93b6:76
client?93b6:76[default] /Users/vcernomschi/d3-ng2-demo/src/app/d3-demos/drag-zoom-2/drag-zoom-2.component.ts:61:30
Property 'tsv' does not exist on type 'typeof "/Users/vcernomschi/d3-ng2-demo/node_modules/d3-ng2-service/src/bundle-d3"'.
The text was updated successfully, but these errors were encountered:
d3.dsv, d3.csv, and d3.tsv are not valid methods/members of the d3-dsv module. Please refer to the API documentation.
The service/related typescript definitions correctly throws an error in my IDE, when trying to even use them as suggested in your ngOnInit. By implication running them will lead to an error.
d3.tsv, d3.csv, d3.dsv returns error
Steps to reproduce:
drag-zoom-2.component.ts
in d3-ng2-demo project:Expected result: Application is loaded successfully without errors. Code of dsv,csv,tsv methods displayed.
Actual result: Application is loaded with errors below:
The text was updated successfully, but these errors were encountered: