Skip to content

Importing value results in undefined #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dfala opened this issue Nov 16, 2015 · 3 comments
Closed

Importing value results in undefined #16

dfala opened this issue Nov 16, 2015 · 3 comments

Comments

@dfala
Copy link

dfala commented Nov 16, 2015

Followed steps on README file, but primary and secondary get a value of undefined on my-component.css.

@margalit
Copy link

margalit commented May 19, 2016

For anyone else experiencing similar issues in webpack be sure to add
&importLoaders=1 to your css loader string as per the PostCSS loader readme. For example:

{ test: /\.css$/, loader: 'style!css?modules&localIdentName=[name]---[local]---[hash:base64:5]&importLoaders=1!postcss-loader' }

@haohcraft
Copy link

@margalit whats the importLoaders=1 for?

@haohcraft
Copy link

Found an explanation from here

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

No branches or pull requests

4 participants