Skip to content

tanu31195/gulp-helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install gulp globally

npm install -g gulp

Install locally as a dev dependency as gulp is not used in production

npm install --save-dev gulp

npm install --save-dev gulp-imagemin

Install gulp-uglify

npm install --save-dev gulp-uglify

Install gulp-sass

npm install --save-dev node-sass gulp-sass

Install gulp-concat

npm install --save-dev gulp-concat

Errors

Task did not complete Use async function to overcome below error (Due to gulp v4)

[14:47:48] The following tasks did not complete: default [14:47:48] Did you forget to signal async completion?

TypeError: Cannot read property 'on' of undefined

[15:50:59] Using gulpfile D:\WebstormProjects\gulp-helloworld\gulpfile.js [15:50:59] Starting 'sass'... [15:50:59] 'sass' errored after 14 ms [15:50:59] TypeError: Cannot read property 'messageFormatted' of undefined at Function.logError (D:\WebstormProjects\gulp-helloworld\node_modules\gulp-sass\index.js:158:49) at D:\WebstormProjects\gulp-helloworld\gulpfile.js:56:40 at sass (D:\WebstormProjects\gulp-helloworld\node_modules\undertaker\lib\set-task.js:13:15) at bound (domain.js:426:14) at runBound (domain.js:439:12) at asyncRunner (D:\WebstormProjects\gulp-helloworld\node_modules\async-done\index.js:55:18) at processTicksAndRejections (internal/process/task_queues.js:79:11)

Gulp error: watch task has to be a function

[16:15:10] Using gulpfile D:\WebstormProjects\gulp-helloworld\gulpfile.js [16:15:10] Starting 'watch'... [16:15:10] 'watch' errored after 3.85 ms [16:15:10] Error: watching src/js/*.js: watch task has to be a function (optionally generated by using gulp.parallel or gulp.series) at Gulp.watch (D:\WebstormProjects\gulp-helloworld\node_modules\gulp\index.js:31:11) at D:\WebstormProjects\gulp-helloworld\gulpfile.js:69:10 at watch (D:\WebstormProjects\gulp-helloworld\node_modules\undertaker\lib\set-task.js:13:15) at bound (domain.js:426:14) at runBound (domain.js:439:12) at asyncRunner (D:\WebstormProjects\gulp-helloworld\node_modules\async-done\index.js:55:18) at processTicksAndRejections (internal/process/task_queues.js:79:11)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published