Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

No default export, problem with export locals - can't use full classNames #87

Open
SatarisGIT opened this issue Jan 4, 2019 · 3 comments

Comments

@SatarisGIT
Copy link

SatarisGIT commented Jan 4, 2019

Hello!

I have problem with newest version of this loader.

Loader working great, but dont generate "export default locals;" string.

export interface IMonitoringHeaderModuleScss {
  'header': string;
  'header__header_element': string;
  'headerHeaderElement': string;
  'header__header_element--modifier': string;
  'headerHeaderElementModifier': string;
}

export const locals: IMonitoringHeaderModuleScss;`

So I cant use any styles from it beacuse my styles when I import them

import styles from './MonitoringHeader.module.scss';

lands DIRECTLY in "styles" object, not "styles.locals"...

I dont like namedExport with camelCase - generated names look really bad with BEM convention.

@ztolley
Copy link

ztolley commented Jan 6, 2019

Same here +1

@dmnn
Copy link

dmnn commented Jan 14, 2019

+1

@nickpape
Copy link

nickpape commented May 2, 2019

Yep, I am having this issue too. I will try downgrading and seeing if that resolves issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants