Skip to content

Error: No exported locals found #15

Closed
@kilgarenone

Description

@kilgarenone

I have a index.scss file with such CSS rules:

@font-face {
   font-family: Lato;
   src: url('font-lato/lato-bold-webfont.woff2') format('woff2')
   font-weight: 700;
}

body {
  font-family: Lato;
}

And I got this error Error: No exported locals found for C:\Users\kw\pm\src\css\index.scss at Object.module.exports (C:\Users\kw\pm\node_modules\css-modules-typescript-loader\index.js:73:19)

It works fine if the rules are just class selector .selector { color: red }.

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