Esecuzione di un compito di bussola con risultati in Gulp in un LoadError
Domanda
Quando si esegue un'attività Compass con Gulp (su OSX), ricevo il seguente errore.Ho provato a installare versioni specifiche di Bussola e Sass (in vari ordini) senza alcun effetto notevole.
[17:25:46] LoadError on line ["54"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- compass/import-once/activate
Run with --trace to see the full backtrace
events.js:72
throw er; // Unhandled 'error' event
^
Error: Compass failed
at Transform.<anonymous> (/Users/liamegan/Projects/WTC/nintendo.wethecollective.com/html/Websites/Kids/web/node_modules/gulp-compass/index.js:37:28)
at ChildProcess.<anonymous> (/Users/liamegan/Projects/WTC/nintendo.wethecollective.com/html/Websites/Kids/web/node_modules/gulp-compass/lib/compass.js:136:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
.
La mia versione Compass è 0.12.7 e la mia versione Sass è 3.3.13 Tuttavia ho anche provato con Sass 3.2.19.
Il mio processo Gulp Sass è il seguente:
gulp.task('sass', function() {
gulp
.src('./_src/sass/screen.scss')
.pipe(compass({
config_file: './config.rb'
}))
.pipe(gulp.dest('./assets/css'))
})
.
Qualsiasi aiuto o intuizione sarebbe molto apprezzato.
Cheers, L
Soluzione
L'ho risolto con quanto segue:
sudo gem uninstall sass
sudo gem uninstall compass
sudo gem install sass
sudo gem install compass --pre
.
Installato la versione di Prerelease di Bussola che funziona con la versione più recente e stabile di Sass.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow