找不到要导入的样式表

时间:2019-09-16 13:46:05

标签: sass bootstrap-4

我正在使用引导程序和sass。 Nodejs发出咕unt声。

app.sss

$icon-font-path: "/bower_components/bootstrap-sass-official/vendor/assets/fonts/bootstrap/";
$fa-font-path: "/bower_components/font-awesome/fonts";
$header-height: 50px;

@import 'bootstrap-sass-official/vendor/assets/stylesheets/bootstrap';
@import 'font-awesome/scss/font-awesome';
...
...
...

错误:

Error: Can't find stylesheet to import.
      ╷
    4 │ @import 'bootstrap-sass-official/vendor/assets/stylesheets/bootstrap'

我尝试使用~ no $icon-font-path,试图放置相对路径,但没有用。

有什么建议吗?谢谢。

1 个答案:

答案 0 :(得分:0)

所以可能会有多个错误:

  1. 样式表的路径是否正确?
  2. 文件名正确吗?
  3. 您是否必须在“ / bootstrap-sass-official / ...”之类的路径之前添加“ /”?

尝试一下并寻找结果:)