Skip to content

A PostCSS plugin did not pass the from option to postcss.parse. #40

Description

@kkkisme

when use postcss@8.4.23 and this plugin , will show below warning message:

A PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.

Activity

  1. kevinkace commented on Nov 10, 2023

    @kevinkace

    I'm using postcss-modules-values with SvelteKit, and seeing this error as well as values not importing correctly from other files.

    /* global.css */
    @value testColor: red;
    /* +layout.svelte */
    @value testColor from "../global.css";
    .header {
        background-color: testColor;
    }

    image

  2. olsonpm commented on Jun 9, 2026

    @olsonpm

    I ended up using postcss-simple-vars instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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