File to import not found or unreadable: compass

前端 未结 5 1571
野趣味
野趣味 2020-12-05 02:14

I successfully installed Sass, but I\'m having trouble importing Compass.

The following is the error detail:

*Syntax error: File to import not found          


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 02:32

    If you're like me and came here looking for a way to make sass --watch work with compass, the answer is to use Compass' version of watch, simply:

    compass watch
    

    If you're on a Mac and don't yet have the gem installed, you might run into errors when you try to install the Compass gem, due to permission problems that arise on OSX versions later than 10.11. Install ruby with Homebrew to get around this. See this answer for how to do that.

    Alternatively you could just use CodeKit, but if you're stubborn like me and want to use Sublime Text and command line, this is the route to go.

提交回复
热议问题