Compiling CSS on OSX Lion in CodeKit - File to import not found or unreadable: compass

StackOverflow https://stackoverflow.com/questions/15833309

  •  01-04-2022
  •  | 
  •  

문제

Having an issue with CodeKit compiling my SCSS files. It works via Terminal with compass compile or compass watch but within CodeKit it throws this error:

Syntax error: File to import not found or unreadable: compass.
          Load path: /

The line that it's complaining about is:

@import "compass";

I've installed compass the standard way and put my project into CodeKit but have no idea why it's dying here... I've had a google around but most people are complaining about 'zurb-foundation' and their issue commonly being they didn't import it in their compass.rb file. Here it's JUST compass.

I've tried sudo gem update but nothing seems to get CodeKit to compile properly.

도움이 되었습니까?

해결책

I'm using Zend Framework and was adding the root directory to CodeKit. It seems I had to add the public folder to get it to work as it then recognised my project as a Compass project and worked then with SASS in that root directory.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top