Skip to content

'culori/fn' regression in 4.0 #223

@ai

Description

@ai

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/[email protected]/node_modules/culori/src/index.js:274:28

Seems like we forgot modeItp in ./itp/definition.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions