Migrating from v1 to v2 Warningv2 will work only in ESM environment. For CJS please use bundler. Replace imports like var rgb = require('color-space/rgb') with import rgb from 'color-space/rgb.js'. Test thoroughly.