-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
error TS7016: Could not find a declaration file for module 'd3-scale'. Versions 19.1.0 through 20.1.2 #1686
Comments
you should install @types/d3 in dev dependencies this is not a bug |
Newly installed ngx-charts today in my Angular project and this fixed it for me.
|
you should specify @types/d3 in peer dependencies this is a bug |
This is the same bug case as in #1620 The thing is my project does not make direct use of that Clearly it was skipped from 19.0.1 to 19.1.0, same as |
This problem persists with version 19.2.0 |
Still getting this problem with version 20.0.1 |
With ngx-charts 20.0.1 and Angular 13 I get build errors and have to google the solution. Installing |
I agree with @jlquijada I just installed v20.0.1 and got the same error, I had to run |
Agree with @jlquijada Please fix this so we all can remove this dependency of our projects. Pull request #1727 can take care of this |
Same issue. Just installed version "^20.0.1" to face this error. |
Still getting this problem with version 20.1.0 |
This really works for me! |
this fixed it for me. Thanks |
This should be specified in documentation, I am a brand new user, when it comes to getting started it only says to install ngx-charts, I think you should just put npm install @types/d3 --save-dev as well to reduce confusion, a lot of libraries include such additional information, no shame in including it. |
when i installed npm install @types/d3 --save-dev i have got this error ./node_modules/@angular/cdk/fesm2015/portal.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** × Failed to compile. |
@Ismailharik That's irrelevant to this issue thread but also it quite clearly explains you need to upgrade angular. |
Still unsolved, will phase-out this package in favor of |
Why do I need to google for this??? Still exist on 20.1.2 |
This is a bug. Adding d3 in app after adding dependency for ngx-charts is only workaround, can we have this fixed? |
Setting |
You should not be disabling type checking in your TS application over some dependency problem. Just use the package |
why do we need @types/d3 dependency in our project? it should be ngx chart responsibility. This library is a pain the arse!!! |
you can add |
i don't thinks event after installing the @types/d3 i am getting errors Try 1 import { ScaleLinear, ScalePoint, ScaleTime } from 'd3-scale'; |
Describe the bug
I updated my project to use the version 19.1.0, and now I get this build error:
ngx-charts version
19.1.0
Additional context
when I revert to version 19.0.1, everything works again.
Angular 12.2.9
The text was updated successfully, but these errors were encountered: