My compass has stopped working together with Grunt - sass

Im using sass and compass together with Grunt to build my project. But suddenly compass has just stopped working. When i run my Grunt i get this error:
"Running "sass:dist" (sass) task
ERROR: Cannot load compass.
Warning: Exited with error code 1 Use --force to continue."
The versions are:
compass (0.12.4)
sass (3.2.18)
I have googled ant tried a lot of stuff but none seems to work for me.
Any suggestions?

Related

Error on #import "bootstrap-sass/assets/stylesheets/bootstrap/variables"

We use microsoft VSTS build and release pipeline. Everything was working fine until 2 days ago. We faced an interesting issue when running a gulp script to compile SASS using Yarn.
I kept on failing with this error:
> 2018-03-14T05:23:42.3498877Z >> #import
> "bootstrap-sass/assets/stylesheets/bootstrap/variables";
> 2018-03-14T05:23:42.3498877Z ^ 2018-03-14T05:23:42.3498877Z
> 2018-03-14T05:23:42.3498877Z at options.error
> (F:\agentA\_work\1\s\prototype\node_modules\node-sass\lib\index.js:291:26)
As soon as we ran these commands below on Build server it started working:
npm i -g yarn
npm i -g gulp
Questions:
Any idea why above command would fix the problem?
Before the fix we looked whether bootstrap and all files existed on build server. They definitely were there. And still build failed until we ran above command. I wonder why it failed.
Thanks

Gulp Outputs Jibberish Error when Compiling SASS on Windows 10

I'm using the gulp-ruby-sass module to compile my SCSS files. On my Mac the gulp task works fine. However, I cannot get my Windows 10 machine to do the same job, as it keeps throwing an error with broken encoding, so I cannot even read ang google it properly.
[19:22:55] Starting 'sass'...
[19:22:55] "sass" �� ����� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.
[19:22:55] Finished 'sass' after 38 ms
Can anyone please help?
Check your <Ruby_installation_path>/bin directory is in
PATHenvironment variable. If not, append it and restart console.
Check compass gem is installed in Ruby. If not, run gem install
compass.

Grunt Sass Task Error when Running "Grunt Compile"?

When running "Grunt Compile" I get the below error related to Sass Task? I have checked that all files exist and that there are no syntax errors. See Gist link below for "gruntfile.js". This is for a pre-existing grunt project on Windows 7 and all that was required was that I installed sass, npm, grunt & setup environment variables. And it's not working.
Running "sass:dev" (sass) task
Warning: source string:1: error: invalid top-level expression
Use --force to continue.
Aborted due to warnings.
https://gist.github.com/Cypher278999/6e2703dc3391e4509098

"invalid option" when running Yeoman Webapp + Compass

I'm new to Yeoman and I`m trying to setup a yeoman bootstrap sass/compass enviroment.
I've followed this link for the creation of the Yeoman Webapp.
And this link to the compass recipe.
When I run grunt serve I get the following:
Running tasks: compass:server
Running "compass:server" (compass) task
Verifying property compass.server exists in config...OK
File: [no files]
Options: sassDir="app/styles", cssDir=".tmp/styles", imagesDir="app/images", javascriptsDir="app/scripts", fontsDir="app/styles/fonts", generatedImagesDir=".tmp/images/generated", importPath="bower_components", httpImagesPath="../images", httpGeneratedImagesPath="../images/generated", httpFontsPath="fonts", relativeAssets=false, assetCacheBuster=false, debugInfo
Error: invalid option: --import-path=bower_components
Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]
I have searched around all over to fix the issue with no success any help would be deeply appreciated.
Solved by upgrading Compass...

Grunt Compass Fatal error: spawn EPERM

I have recently been trying to work with this recently, originally i had issues with ruby etc, then i uninstalled ruby and went with the rvm way of doing ruby and now i no longer have those problems..
And now hopefully i have my last issue, which seems to be a grunt/grunt-contrib-compass issue.
I get the following error when i try to run any of the commands that involve the compass task:
Running "compass:dev" (compass) task
Verifying property compass.dev exists in config...OK
File: [no files]
Options: config="C:\\code\\newsletters\\globalgeorgia\\test\\grunt-email-boilerplate\\vendor\\compass-config.rb", cssDir="tmp/css", imagesDir="tmp/images"
Fatal error: spawn EPERM
And I have tried solutions around similar issues with no luck... Any Help Would be Great!
UPDATE
Ive figured that it has to be with compass because this gives the exact same issue where as this (not using compass) works perfectly.

Resources