Search code examples
cssangulartypescriptsasscompass

Import css3/compass from Angular Typescript


I tried to use compass from an Angular application written in TypeScript (not Javascript), but when I write the next line:

// general.scss
@import 'compass/css3';

I get the following error:

@import 'compass/css3';
^
      File to import not found or unreadable: compass/css3.

How could I install compass?


Solution

  • Try importing it with this ~ as in (if you've installed compass-mixins),

    @import '~compass-mixins/lib/compass/css3';