Skip to content

Problem when using sass-loader with css modules #415

Description

@elevchyt

Hello, I just attempted to fix the recent warning that is popping up in a lot of projects due to dart-sass.

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

While this fix seems to work and remove the message, it seems that when using CSS modules, upon compilation we're getting an error ReferenceError: classes is not defined when attempting to use the classes of a CSS module in this fashion: className={classes.userTitle}.

We're using Turbo with Next.js. Would love to solve this, any idea?

Activity

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