流星fourseven:scss抛出“导入未找到或无法读取的文件”

时间:2015-06-01 20:16:41

标签: meteor sass ionic

我正在使用流星包,我不断收到此错误。

   client/style.scss: Scss compiler error: undefined
   /Users/lucanaterop/Desktop/lend/client/style.scss:3: file to import not
   found or unreadable:
   '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons.css.sass'

当重新启动流星服务器时,已知该错误消失,但这不会发生。 只有当我尝试包含ionicons-sass时才会发生这种情况:

@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons.css.sass';

出现在ionic-sass导入中:

@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic';

1 个答案:

答案 0 :(得分:1)

目前该软件包存在问题......此处记录:https://github.com/meteoric/ionicons-sass/issues/7

临时解决方案,直到这个问题得到解决(我从同一个github页面上得到这个):

替换...

@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';

...与

@import 'http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css';

(您也可以选择下载css并在本地导入,但要做到这一点,您还需要下载字体文件并将其放入../public/fonts/ ...)< / em>的