Qix- / color-convert

Plain color conversion functions in JavaScript
MIT License
744 stars 96 forks source link

Cannot read property '1' of null #64

Closed natw2012 closed 4 years ago

natw2012 commented 5 years ago

Hello, I'm using chartjs in an Electron application which uses color-convert. I get the following error on launch but I haven't figured out why. Was working fine on a previous computer but has been giving me issues since moving over to a new laptop.

Potentially could be associated with node-gyp issues I have also been getting since moving over.

Any help would be appreciated, thanks!

image

image

Qix- commented 5 years ago

This is a SUPER old version of color-convert... Like, ancient. Before my time here, for the most part. Without information on the surrounding code or how it's being used, I cant really help you.

Have you tried upgrading?

odolha commented 4 years ago

It's most likely another library older version that uses that old version. In my case for example it was winston@3.0.0. Fixed after upgrading to 3.3.3. To see what library versions are used and why, just run npm list. I also saw this issue seemed to be created when adding custom stuff in Object.prototype. Either way, it's fixed when upgrading.

Qix- commented 4 years ago

Yep. Closing :)