-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Modules configuration with className.selectors
throws error
#203
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Ok first and foremost - I just had this same error and Google returned literally a single result - this page. So thank you, you have saved me a lot of headache. I am using Webpack as opposed to Rollup, so I believe the problem lies with @nickstanish would you mind giving your version of autoprefixer and the contents of the line its failing at? I'm interested in investigating this and |
@JakeStanger I wasn't sure which package was the root cause, but I agree, it sounds like autoprefixer or postcss is the issue here. My version of https://github.com/postcss/autoprefixer/blob/7.2.5/lib/processor.js#L259-L260 |
@nickstanish I opened an issue over at postcss/autoprefixer#1269 which has subsequently been fixed by postcss/autoprefixer@33ee989. Hopefully a release containing the fix will come out soon. Your version of autoprefixer is two major versions behind by the way. |
tldr; modules object in rollup config causes
.selectors { /* ... */ }
to throw errorI have a (trivial for demonstration purposes) css file that looks like this:
with an index.js that simply imports the css:
and rollup.config.js:
Running
rollup -c
throws an error:However, it appears that the class name "selectors" is specifically breaking it. Updating to
.selector
succeeds:Additionally, removing the modules from rollup configuration fixes it without renaming
.selectors
:The text was updated successfully, but these errors were encountered: