简体   繁体   中英

sass/bulma error : Error: File to import not found or unreadable: utilities/mixins.sass

]I am trying to compile a css file from sass. I am using bulma (bulma.io) as the css framework. Here is the directory structure I have 在此处输入图片说明

I am trying to change the grid.sass to output.css

and I am running this command from the "bulma" dir

 sass grid.sass output.css

but I get the following error

Error: File to import not found or unreadable: utilities/mixins.sass.
        on line 1 of grid.sass
  Use --trace for backtrace.

I don't know why this error is appearing. I am running this according the documentation. I am on CentOs machine, and have gem installed.

[root@foo bulma]# sass -v
Sass 3.4.23 (Selective Steve)

I'm not too familiar with the sass gem, however according to their docs, you would not use quotes and add semicolons. So I assume something like:

@import utilities/mixins;

Import - Sass Docs

You might also need to rename your grid file to have an underscore, as mentioned in their docs as well.

I was getting similar error in when I was using bulma-extensions . To fix it, I had to update the import statement from

@import 'bulma/sass/utilities/_all.sass'

to this.

@import '../../bulma/sass/utilities/_all.sass'

Note: I installed sass-loader and node-sass in vue-cli generated project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM