Question: ```
Invalid CSS after "}": expected selector or at-rule, was "}"
  (in /home/test/www/dispatch/app/assets/stylesheets/application.css)
(sass):364

```

The above error is what is occurring in my precompile and I'm unable to find the problem. I've tried renaming the file to `application.css.scss` and I get the same error, with a different line number `:405`

The thing that has me stumped is that this file only contains `159` lines so I'm not sure where that line number is coming from.

I'm precompiling on my local machine because last night this error occurred in an attempt at a production migration.

Answer: 
If its your application.css then it would compile all your css to that file, so there's a chance that the problem isn't in that file itself, but in a file it's compiling into it. Check your code for a missing semicolon.
I agree with @Digi\_Cazter. But the same error may happen because of putting invalid brackets like 

```
.someclass{
  property: value;
}}

```