You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gulp is introduced in episode 19. However, gulp recently went from version 3 to 4 and with that, a new notation is used.
function arguments are now supposed to be used with gulp.task( 'default', gulp.series('styles', 'js'), function() { instead of an ordinary array gulp.task( 'default', ['styles', 'js'], function() {.
Converting tasks are easy, however, when I run Gulp Watch, I get this error:
[13:41:35] Starting 'watch'...
[13:41:35] Starting 'default'...
[13:41:35] Starting 'styles'...
[13:41:35] The following tasks did not complete: watch, default, styles
[13:41:35] Did you forget to signal async completion?
I tried setting the required gulp version to 3.9.1 but that gave me 9 high severity vulnerabilities when running npm install.
When fixing them using npm audit fix (and then the recommended npm audit fix --force), npm sets Gulp's decency back to 4.0.2 as of today (Marts. 4th, 2021).
The text was updated successfully, but these errors were encountered:
Michagin
changed the title
Changes in gulp notation from Gulp 3 to Gulp 4
Changes in Gulp notation from Gulp 3 to Gulp 4
Mar 4, 2021
Michagin
changed the title
Changes in Gulp notation from Gulp 3 to Gulp 4
Changes in Gulp notation from version 3 to 4.
Mar 4, 2021
Michagin
changed the title
Changes in Gulp notation from version 3 to 4.
Changes in Gulp notation from version 3 to 4
Mar 4, 2021
Same issue here.
I have tied 5 or 6 ways to solve this.
Downgrading, altering the sources.
Running a recovery tool.
Reinstalling the software.
Reinstalling the correct version in a VM-Ware machine.
Etcetera.
Gulp is introduced in episode 19. However, gulp recently went from version 3 to 4 and with that, a new notation is used.
function arguments are now supposed to be used with
gulp.task( 'default', gulp.series('styles', 'js'), function() {
instead of an ordinary arraygulp.task( 'default', ['styles', 'js'], function() {
.Converting tasks are easy, however, when I run
Gulp Watch
, I get this error:I tried setting the required gulp version to
3.9.1
but that gave me 9 high severity vulnerabilities when runningnpm install
.When fixing them using
npm audit fix
(and then the recommendednpm audit fix --force
), npm sets Gulp's decency back to4.0.2
as of today (Marts. 4th, 2021).The text was updated successfully, but these errors were encountered: