Skip to content
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

fatal error: node_modules/css: property missing value near line 1:28445 #56

Closed
ukeboyska opened this issue Jan 27, 2014 · 7 comments
Closed

Comments

@ukeboyska
Copy link

so i tried applying uncss to a new project, and now get this unexplained error when i run the task:

fatal-error

as far as i can tell, i applied the grunt task the same exact way i did in my other project, which works fine now. what would be causing this error?

@giakki
Copy link
Member

giakki commented Jan 27, 2014

That error should be caused by a syntax error in the CSS.
If you are sure that all the stylesheets are valid, could you please find which one causes that error, and look up which line/selector is reported, so I can look into it?
Thanks!

@ukeboyska
Copy link
Author

@giakki .. since i'm using compass/sass/grunt to compile, it's impossible for the stylesheet to be invalid.

can you help me figure out how to find line 1:28445? i'm not sure how to interpret that...

@giakki
Copy link
Member

giakki commented Jan 28, 2014

Line 1:28445 could mean that the input stylesheets are minified and thus contain only one line.
The best way to find which one it is would be to pass non-minified stylesheets to UnCSS one at a time, so they don't get concatenated, and you can directly inspect which line is reported, or, if you can, simply share your CSS, so I can take a look myself ;)

@ukeboyska
Copy link
Author

hey the problem was filter: ;

i was using a plugin's sass file (jquery textshadow), and it has an if statement that returns an empty filter value under certain conditions. i just added another if statement around it, and that helped!

works now! thanks again for your help

@giakki
Copy link
Member

giakki commented Jan 30, 2014

No problem, glad I could help!
I might add a more informative error in the next release ;)

@addyosmani
Copy link
Member

Thanks for following up with more helpful error messages, @giakki! Closing this one.

@manjula-dube
Copy link

manjula-dube commented Jun 28, 2016

hey I am facing a problem in my css and i am using minified once.It just takes too long

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