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:

  1. rm -rf node_modules; rm -rf bower_components; npm install; bower install
  2. npm run setup

Comments

sloyer807 created an issue. See original summary.

sloyer807’s picture

Issue summary: View changes
shadcn’s picture

Hmm, can you check if you have a bootswatch directory created under akdata/assets/scss?

NWOM’s picture

Having the same issue on a fresh install.

Andrew211’s picture

Anyone 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