简体   繁体   中英

File to import not found or unreadable: neat/neat

I have a Rails project that I'm trying to add Bourbon and Neat to the app. I have installed the gems and I have now tried to include the imports to the main stylesheet. But when I try to refresh the home page I get this error. File to import not found or unreadable: neat/neat. Load paths: File to import not found or unreadable: neat/neat. Load paths: it also include this line in the error path <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>

This is my first time trying to add bourbon and neat to a project and I don't really know where to go from here. Any help would be great thanks!

If you are using neat 1.x the correct path for import is @import 'neat' . From neat 2.0.0 you need to go to the stylesheet path and run neat install before use @import 'neat/neat' .

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