Skip to content

Tailwind with plugin is not working: Cannot use import statement outside a module #22

@fab1o

Description

@fab1o

I'm using tailwind v3, and I have a config with a plugin:

tailwind.config.js:

import oklch from 'tailwind-plugin-oklch';

export default {
 content: ...,
 theme: ...,
 plugins: [oklch]
};

I get this error message when trying to use the extension: "Cannot use import statement outside a module"

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