Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sly36 opened this issue Feb 28, 2019 · 1 comment
Open

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

Sly36 opened this issue Feb 28, 2019 · 1 comment

Comments

@Sly36
Copy link

Sly36 commented Feb 28, 2019

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

@sanketphansekar
Copy link

sanketphansekar commented Jan 29, 2020

@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/"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants