gulpjs / gulp

A toolkit to automate & enhance your workflow
https://gulpjs.com
MIT License
33.01k stars 4.23k forks source link

Cannot run sass task: missing in gulpfile.js #2327

Closed silu44 closed 5 years ago

silu44 commented 5 years ago

I got this error please help to fix it

version of gulp

CLI version: 2.2.0
Local version: 3.9.1

when run ( ionic info )

[WARN] Bad integration name: gulp

Ionic:

   ionic (Ionic CLI) : 4.12.0 (C:\Users\Codedev\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework   : ionic1 1.3.1
   @ionic/v1-toolkit : 1.0.22

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : not available

System:

   Android SDK Tools : 26.1.1 (F:\sdk)
   NodeJS            : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows Server 2016

and when run cordova build android

var gulp = require('gulp');
var sass = require('gulp-sass');
var cleanCss = require('gulp-clean-css');
var rename = require('gulp-rename');

var paths = {
  sass: ['./scss/**/*.scss']
};

gulp.task('default', function() {

}) ;

gulp.task('sass', function () {
    gulp.src('./sass/**/*.scss')
        .pipe(sass().on('error', sass.logError))
        .pipe(gulp.dest('./css'));
});

gulp.task('sass:watch', function () {
    gulp.watch('./sass/**/*.scss', ['sass']);
});
support[bot] commented 5 years ago

Issues are reserved for bugs and features. Here are a few places to find answers to your question:

mubasshir commented 5 years ago

@silu44 how did you resolve this?