Skip to content

Build fails with '[postcss-custom-media] "importFrom" is no longer supported' #725

Closed
@tvsbrent

Description

@tvsbrent

Reproduction link

No response

Bug description

With an upgrade to postcss-custom-media version 9.x, we began seeing this error in our builds:

Loading PostCSS "postcss-custom-media" plugin failed: [postcss-custom-media] "importFrom" is no longer supported

I do see there is a discussion about removing support for importFrom and exportTo, but it didn't look like that discussion was resolved to the point where the change as being made. Also, I the README and CHANGELOG in the project have not been updated for version 9.x, so I'm wondering if the release of that functionality was intentional.

Actual Behavior

No response

Expected Behavior

No response

Can you reproduce it with npx @csstools/csstools-cli <plugin-name> minimal-example.css?

No response

npx Output

No response

Extra config

No response

What plugin are you experiencing this issue on?

PostCSS Custom Media Queries

Plugin version

9.0.1

What OS are you experiencing this on?

No response

Node Version

18.12.0

Validations

  • Follow our Code of Conduct
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions