Skip to content

extend gives error with Vite/Typescript/eslint #129

@Dylan190774

Description

@Dylan190774

I'm using Vue3 with Vite and Typescript, and I'm trying to use a plugin, but the example code gives an error:

import { colord } from 'colord';
import a11yPlugin from 'colord/plugins/a11y';
extend([a11yPlugin]);

[vue-tsc] Cannot find name 'extend'.

I can't seem to find any information about the keyword 'extend' so I'm at a loss here.
Maybe installing a plugin with something like
colord.use(a11yPlugin)
would be a nice solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions