导入的文件未找到或无法读取 compass - IntelliJ

3

我正在尝试使用IntelliJ Idea Framework和Bootstrap以及SASS开发我的第一个网页。当我在main.scss中输入时,

@import "compass" 

显示错误信息:

cmd.exe /D /C call C:/Ruby22-x64/bin/scss.bat --no-cache --update main.scss:main.css
  error main.scss (Line 1: File to import not found or unreadable: compass.)

我已在IntelliJ中启用了Compass,使用cmd安装了Compass并设置了Compass的配置路径。我还需要做些什么来使它正常工作? 请帮忙!

1个回答

2

我花了很多时间来解决同样的问题。 前往WebStorm/首选项/工具/文件监视器。 在那里,您应该创建compass监视器(按“+”号添加新的监视器),并禁用SASS监视器(如果存在)。我的屏幕上应该看起来像这样。试试吧。希望我的帖子对您有所帮助 =) enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接