Seems like there is a regression in 4.0 with 'culori/fn' import because of new itp color space.
Both in Node.js and browser (after Vite):
import { useMode } from 'culori/fn'
Error:
Uncaught ReferenceError: Cannot access 'modeItp' before initialization
at file:///home/ai/Dev/oklch-picker/node_modules/.pnpm/culori@4.0.0/node_modules/culori/src/index.js:274:28
Seems like we forgot modeItp in ./itp/definition.js.
Seems like there is a regression in 4.0 with
'culori/fn'import because of newitpcolor space.Both in Node.js and browser (after Vite):
Error:
Seems like we forgot
modeItpin./itp/definition.js.