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.
Hey everyone,
Having an issue getting my subtheme to work properly after running Gulp.
After creating my sub theme via Drush, running 'npm run setup'
I get thrown this error.
"[17:44:44] gulp-notify: [Gulp] Error: assets/scss/akdata.style.scss
Error: File to import not found or unreadable: bootstrap/variables.
Parent style sheet: /Applications/MAMP/htdocs/akdata/themes/akdata/assets/scss/akdata.style.scss
on line 8 of assets/scss/akdata.style.scss
>> @import "bootstrap/variables";"
Update: No bower_components directory is being created.
Steps taken after initial:
- rm -rf node_modules; rm -rf bower_components; npm install; bower install
- npm run setup
Comments
Comment #2
sloyer807 CreditAttribution: sloyer807 commentedComment #3
shadcn CreditAttribution: shadcn at Chapter Three commentedHmm, can you check if you have a bootswatch directory created under
akdata/assets/scss
?Comment #4
NWOM CreditAttribution: NWOM commentedHaving the same issue on a fresh install.
Comment #5
Andrew211 CreditAttribution: Andrew211 commentedAnyone able to resolve this? Although the paths are all set in config.json, and the gulpfile is loading config.json, still the imports are failing.
Checked permissions, all are fine.
Ended up mapping the @imports manually, would be nice if someone has a better solution.
Thx