sass-export icon indicating copy to clipboard operation
sass-export copied to clipboard

Include Paths for @import doesn't seems to work with Bootstrap

Open Sly36 opened this issue 6 years ago • 1 comments

I have a "_variables.scss" with two imports : @import "~bootstrap/scss/functions"; @import "~bootstrap/scss/variables";

When i run sass-export src/styles/common/_variables.scss -o src/exported-sass-variables.json -d "node_modules/bootstrap/scss/"

sass-export throw an error : Error: File to import not found or unreadable: ~bootstrap/scss/functions.

even if I replace the ~ (shortcut to node_modules) by the relative path to node_modules

Sly36 avatar Feb 28 '19 10:02 Sly36

@Sly36 I was also facing the same issue, and I gave the path to my scss directory. You can try in a below manner :

includePaths: ["node_modules/bootstrap/scss/"]

sanketphansekar avatar Jan 29 '20 13:01 sanketphansekar