-
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 TypeError: n.rgb is not a function #1291
Comments
I have the same problem. As a workaround I use the angular-cli option |
I solved my problem. Updated version of |
Hello, I got the error when I have reload the page. In "@angular-devkit/build-angular": "^0.10.6" version Error TypeError: t.rgb is not a function |
Thanks @Michel73 Updated version of @angular-devkit/build-angular solved the issue |
Having the same issue with latest angular packages. None of the solutions above worked. Project works fine in npm start / jit mode, but not int AOT. |
I think the issue is related to d3 packages. I solve this kind of problem with this solution. |
The d3 packages have been updated in v 13.0.0. Closing this as fixed. Please open a new issue if you still see a problem. |
Same as the issue: d3/d3-color#68 |
Describe the bug
I have added several bar graphs to my Angular 8.2.12 application, and they work beautifully. I recently added a heat map, and I am seeing the following error:
main.663f7eda36bb1abc50f2.js:1 ERROR TypeError: n.rgb is not a function
at MI (main.663f7eda36bb1abc50f2.js:1)
at AI (main.663f7eda36bb1abc50f2.js:1)
at t (main.663f7eda36bb1abc50f2.js:1)
at eR (main.663f7eda36bb1abc50f2.js:1)
at jR (main.663f7eda36bb1abc50f2.js:1)
at n.c [as scale] (main.663f7eda36bb1abc50f2.js:1)
at n.getColor (main.663f7eda36bb1abc50f2.js:1)
at main.663f7eda36bb1abc50f2.js:1
at Array.map ()
at main.663f7eda36bb1abc50f2.js:1
ngx-charts version
I am using nix-charts 12.0.1, and this problem is visible in both Safari, and Chrome.
The text was updated successfully, but these errors were encountered: