[英]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. 我有一个Rails项目,试图将Bourbon和Neat添加到应用程序中。 I have installed the gems and I have now tried to include the imports to the main stylesheet.
我已经安装了gems,现在尝试将导入内容包括到主样式表中。 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 %>
File to import not found or unreadable: neat/neat. Load paths:
错误路径中也包含此行<%= 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'
. 如果您使用的是整洁1.x,则正确的导入路径为@
@import 'neat'
。 From neat 2.0.0 you need to go to the stylesheet path and run neat install
before use @import 'neat/neat'
. 从neat 2.0.0开始,需要使用@
@import 'neat/neat'
之前,转到样式表路径并运行neat install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.