-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transition does not work #42
Comments
What version of the service are you using and which versions of the @types/d3-selection and @types/d3-transition are currently installed with your project? |
E:\opensource-project\temp-aspnet\angularcli\d3-ng2-demo-master>npm outdated so the version of d3-ng2-service is 1.8.0, and I did not install any @types/d3-****** separately. they should be installed automatically during d3-ng2-service installation and their version should be depended on d3-ng2-service's dependencies. thank you! |
Thanks for the above, but can you please go into the node_modules for @types/d3-selection and @types/d3-transition and let me know their complete version number. The d3-ng2-service pins only down to minor version, i.e. the patch numbers may change. I know that someone recently made changes to the type definitions for d3-transition. These could possibly affect the way the module augmentation from d3-transition to d3-selection works. So the added info may be helpful to troubleshooting. Thanks in advance. |
@askdong Apologies for the delay, I have been AFK for purposes of open source for a few days. I checked the I tested it out with a component that uses the So, could you create a minimally viable repo that reproduces your error? It is likely not with the service itself, but rather with the component implementation. While stackoverflow is generally preferable for implementation questions, I don't mind double-checking, that I don't overlook an edgecase where the service/definitions fail(s). But I would be prefer doing so by cloning a repo and checking it out in VSCode. Cheers, T. |
@askdong Closing this for now. If you can provide me with a public repo link that exhibits the error, I will debug and reopen. Thanks for understanding. |
SORRY, I missed github notification a few days ago. |
Thanks for posting the link. I just cloned it quickly and did the following: (1)
So in summary, I do not seem to be able to reproduce the build/compile error you experienced. Note that my review was limited to the steps noted above, i.e. I did not do a deep dive into the components you wrote. |
I downloaded my repository and followed your steps, and it worked to my surprise, that's very wired! thank you anyway, thank you for your time! |
No worries. |
Hi,
I imported "Transtion" in the file header.
import { D3Service, D3, D3DragEvent, D3ZoomEvent, Selection, Transition } from 'd3-ng2-service';
and I called transtion function in below codes, and this is no error for syntax checking inside vscode.
but when I use angluar-cli to compiled codes, it tell me:
ERROR in E:/opensource-project/temp-aspnet/angularcli/d3-ng2-demo-master/src/app/d3-demos/wafer-map/wafer-map.component.ts (231,12): Property 'transit
ion' does not exist on type 'Selection<BaseType, DieRect, SVGGElement, any>'.
webpack: Failed to compile.
what's wrong with my codes?
thank you!
The text was updated successfully, but these errors were encountered: