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

Bug when using Bootstrap 4 sass - scss file integration with the switch #715

Open
nicolasmartin86 opened this issue Nov 7, 2019 · 5 comments

Comments

@nicolasmartin86
Copy link

Hello,

I've tried using the bootstrap switch scss file "src/sass/bootstrap4/bootstrap-switch.scss"

The 2 lines of @import at the beginning of the file can't be fetched.

It works when I comment them, the switch appears correctly.

I don't see where those imports are necessary and being used. Could we release them commented?

Line 14 and 15
@import "../bootstrap-4.2.1/functions";
@import "../bootstrap-4.2.1/variables";

Maybe I didn't import correctly bootstrap, do I need a specific config?

Thanks a lot

Nicolas

@nicolasmartin86
Copy link
Author

or change the path to
@import "../../../../bootstrap/scss/functions";
@import "../../../../bootstrap/scss/variables";

it's the only way on my config in node_modules to fetch the correct files :)

@lucasvscn
Copy link

still broke

@andrelec1
Copy link

same here ...

@alxma
Copy link

alxma commented Jan 25, 2020

correct path is:
@import "../../../../bootstrap/scss/_functions";
@import "../../../../bootstrap/scss/_variables";

to see the right path - browse to bootstrap/scss folder and see if is: functions or _functions. In version 4.4.1 is _functions.scss

@greefhorst
Copy link

@nicolasmartin86
i got the same error when using vite to compile my assets, see #737 for a patch proposal

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

5 participants