Sass 使用指南针会导致404错误

Sass 使用指南针会导致404错误,sass,compass,Sass,Compass,在我的网站项目中使用SASS库Compass之后,浏览器控制台开始记录404错误,如下所示 GEThttp://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass/css3//u animation.scss 404(未找到)index.html:44 得到http://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-cor

在我的网站项目中使用SASS库Compass之后,浏览器控制台开始记录404错误,如下所示

GEThttp://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass/css3//u animation.scss 404(未找到)index.html:44
得到http://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass//\u support.scss 404(未找到)index.html:44
得到http://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass/css3//u transition.scss 404(未找到)index.html:44
得到http://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass/css3//u border-radius.scss 404(未找到)index.html:44
得到http://localhost:63342/Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.1/stylesheets/compass/css3//u box-shadow.scss 404(未找到)

发生什么事了?如何消除这些问题?

我们至少需要查看您的标记代码。此外,查看您运行的compass命令也很有用。看起来您正在尝试加载某些部分。请注意,代码片段和代码示例之间存在差异。代码(或堆栈)片段是可运行的。代码示例不可用。您发布的内容不包含可运行的javascript。请访问以了解我们的功能。您可能希望查看Bundler以确保您的项目具有良好的本地版本。我找到了原因。在压缩sass之后,有一个***.css.map文件与**.css文件关联。此映射文件中有一个JSON,其属性为“sources”:[“../../../../../../../../../Library/Ruby/Gems/2.0.0/Gems/compass-core-1.0.1/stylesheets/compass/css3/_animation.scss”,…]。但为什么浏览器会选择这些地图源呢?