Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

1.8.0 warns for every selector I use if imports are involved #171

Closed
topaxi opened this issue Jun 30, 2015 · 5 comments
Closed

1.8.0 warns for every selector I use if imports are involved #171

topaxi opened this issue Jun 30, 2015 · 5 comments

Comments

@topaxi
Copy link

topaxi commented Jun 30, 2015

index.css:

@import 'foo.css';

.bar {
  color: blue;
}

foo.css:

.foo {
  color: blue;
}

Shell or any build tool:

$ cssnext index.css
Warning: The selector '.foo' is undefined in CSS!
Warning: The selector '.bar' is undefined in CSS!
.foo {
  color: blue;
}

.bar {
  color: blue;
}

Tested using io.js 2.3.1

@klaemo
Copy link

klaemo commented Jun 30, 2015

yep, same here.

@MoOx
Copy link
Owner

MoOx commented Jun 30, 2015

Hum... Maybe related to recent update from postcss-custom-selectors by @yisibl ?

@MoOx
Copy link
Owner

MoOx commented Jun 30, 2015

@MoOx
Copy link
Owner

MoOx commented Jun 30, 2015

A fix has been proposed csstools/postcss-custom-selectors#23
Hope it will be merged and released asap.

@MoOx
Copy link
Owner

MoOx commented Jul 1, 2015

Please reinstall cssnext to get the latest version of postcss-custom-selectors, fix has been merged an released.

@MoOx MoOx closed this as completed Jul 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants