Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I run gulp, I see this error in Corona subtheme.
ReferenceError: rename is not defined
at Gulp.gulp.task.gulp.src.pipe.compass.config_file (/sites/all/themes/masc/gulpfile.js:34:11)
at module.exports (/sites/all/themes/masc/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/sites/all/themes/masc/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/sites/all/themes/masc/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/sites/all/themes/masc/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
at process._tickCallback (node.js:442:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:929:3
Comments
Comment #1
iamcarrico CreditAttribution: iamcarrico commentedHas already been reported, and has been fixed in the generator.
Please update the generator.
Comment #2
codev0 CreditAttribution: codev0 commentedGenerator was updated, but issue is not solved.
I ran the
npm update -g generator-drupal-theme
. But I node_modules/generator-drupal-theme/extras/templates/gulpfile.js is nothing changed.Comment #3
valgibson CreditAttribution: valgibson commentedIf you ran into the same problem as I did, here's a quick fix: place the following line in the top of your gulpfile.js where all the other variables are being declared.
var rename = require('gulp-rename');
And of course install the required dependency ('npm install gulp-rename --save-dev') if you didn't do it already.