Skip to content

Unexpected Unknown feature warning #1061

Closed
@equinusocio

Description

@equinusocio

Hello, I'm disabling the oklab-function in my config, and recently I'm getting a warning that the feature doesn't exist. It's suggesting to use lab-function which is a different one.

[next:dev] (1:1) postcss-preset-env: Unknown feature: "postcss-oklab-function", did you mean: "lab-function"

My postcss config:

import postcssMixins from 'postcss-mixins';

{
  plugins: {
    'postcss-import': {},
    'postcss-replace': {
      pattern: /token\(.*?--([^\s]+?)\)/gi,
      data: tokens,
    },
    'postcss-preset-env': {
      stage: 0,
      features: {
        'logical-properties-and-values': false,
        'prefers-color-scheme-query': false,
        'postcss-oklab-function': false,
        'gap-properties': false,
        'cascade-layers': false,
      },
      insertAfter: {
        'custom-media-queries': postcssMixins,
      },
    },
    'postcss-mixins': {},
    cssnano: {
      preset: [
        'default',
        {
          discardComments: {
            removeAll: true,
          },
        },
      ],
    },
  }
}

I'm getting this warning in every file where I use oklch colors

CleanShot 2023-07-28 at 15 47 36

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