-
Notifications
You must be signed in to change notification settings - Fork 265
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
Does this package work in Angular 7? #160
Comments
I used this package with typescript and it was working, can you provide the import line? Maybe it is the problem. |
Thanks for your reply. I used the following method to import it. import { Color } from 'color'; Is it causes the problem? Then please guide me with the right way. |
Yes, it is the problem. import * as Color from 'color' The problem is that the syntax that you used works only if the package
|
@dlasagno That's work great. Thanks for your guidance and solution. |
Glad you got it figured out. |
I have my application in Angular 7. After installing this package and importing it to the application, it is not working properly.
When I am using the following command 'var color = Color('rgb(255, 255, 255)')' , I am getting following error in the console.
ERROR TypeError: Object(...) is not a function
Can anyone check this and help to solve the issue?
The text was updated successfully, but these errors were encountered: