无法解析'font-path(%22bootstrapglyphicons-halflings-regular.eot%22'。

问题描述 投票:0回答:1

场景 :

  • 从Angular 2迁移到6后出现错误。
  • 使用angular-cli创建了一个新项目,并将其源码替换为我的。
  • 当运行ng serve时,我得到了下面详细的错误:-。

错误。 Error in ng serve总共有6个错误。以下是app.scss文件:-。

@import "~bootstrap-sass/assets/stylesheets/bootstrap-sprockets";
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
@import "~font-awesome/scss/font-awesome.scss";
@import "bootstrap-checkbox.scss";
// @import "forms.scss";
// @import "main.scss";
@import "bootstrap-and-customizations.scss";
@import 'old.scss';
@import 'forms.scss';
@import "dashboard.scss";
css fonts sass bootstrap-4 angular6
1个回答
0
投票

尝试像这样导入

@import "~bootstrap/scss/bootstrap.scss";
© www.soinside.com 2019 - 2024. All rights reserved.