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
I've tried out the plugin in conjunctions with gulp-sass and the includePaths option with a path to my node_modules folder. Now the following import statements fail:
They are at the right place, I've checked with cd and ls, so my guess is that node-sass-import-once fails to load them. Everything seems fine when disabling the importer option.
Versions:
node -v: 5.9.1
npm -v: 3.8.6
node-sass-import-once: 1.2.0
gulp: 3.9.1
Stack trace:
Error: Could not import `node_modules/reset-css/reset.scss` from any of the following locations:
/Users/myname/Documents/Repositories/myrepo/myrepo/assets/src/scss/app/node_modules/reset-css/reset.scss
/Users/myname/Documents/Repositories/myrepo/myrepo/assets/src/scss/app/node_modules/reset-css/reset.scss
/Users/myname/Documents/Repositories/myrepo/frontend/node_modules/reset-css/reset.scss
The text was updated successfully, but these errors were encountered:
I've just realized that everything works fine when including it with the underscored name: @import 'node_modules/reset-css/_reset.scss';
So there seems to be a slight implementation difference between includePaths imports and normal imports.
EDIT:
It also works when importing it in this syntax: @import 'node_modules/reset-css/reset';
So I'm not sure anymore if this is a bug at all or just a slight inconsistency that it did work before in the first place.
I've tried out the plugin in conjunctions with
gulp-sass
and theincludePaths
option with a path to my node_modules folder. Now the following import statements fail:@import 'node_modules/reset-css/reset.scss';
@import 'node_modules/include-media/dist/include-media.scss';
They are at the right place, I've checked with
cd
andls
, so my guess is thatnode-sass-import-once
fails to load them. Everything seems fine when disabling theimporter
option.Versions:
node -v
: 5.9.1npm -v
: 3.8.6node-sass-import-once
: 1.2.0gulp
: 3.9.1Stack trace:
The text was updated successfully, but these errors were encountered: