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

sass permamently delete css file due to undefined mixin #2552

Closed
timEIrm opened this issue Aug 20, 2018 · 1 comment
Closed

sass permamently delete css file due to undefined mixin #2552

timEIrm opened this issue Aug 20, 2018 · 1 comment

Comments

@timEIrm
Copy link

timEIrm commented Aug 20, 2018

Error: Undefined mixin.
@include media-breakpoint-between(xs,sm){

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  example.scss 38:1  root stylesheet

What happen is that sass creates a .css.map file and permamently deletes the .css file used to overwrite bootstrap 4 scss file. I can't find the .css file, even when looking at system trash bin. It's just "poof", gone!

This is really a groundbreaking bug! Luckily it is easy to create a new file and then comment out the failing @include media-breakpoint, and after doing these steps, type "sass example1.scss example.css" to recreate the file. However what is going on here?

Seems undefined mixin of the type @include creates this bug. (This is bootstrap 4 mixin!)

Thanks for all help adressing this issue!

@nex3
Copy link
Contributor

nex3 commented Aug 20, 2018

This is the intended behavior. When you tell Sass to write to a CSS file, you're giving Sass ownership over that file. When your input is invalid, Sass deletes the file so that if you refresh your browser page you don't see stale styles.

@nex3 nex3 closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants