小编dev*_*fen的帖子

Angular 抛出 :host-context([dir=rtl]) .ion-float-start -> 不匹配的伪类 :host-context 警告,一个 angular.json 中有多个项目

我有一个 Angular 项目,用于 2 个具有不同后端的 Web 应用程序。前端是一样的。由于我将第二个项目添加到 angular.json 中,我收到以下警告:

Warning: 10 rules skipped due to selector errors:
  :host-context([dir=rtl]) .ion-float-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-sm-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-sm-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-md-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-md-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-lg-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-lg-end -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-xl-start -> unmatched pseudo-class :host-context
  :host-context([dir=rtl]) .ion-float-xl-end -> unmatched pseudo-class :host-context
Run Code Online (Sandbox Code Playgroud)

第二个项目中的唯一区别是一些 scss 文件和environment.ts。我不知道这些警告是什么意思以及它们来自哪里。谷歌没有提供任何解决方案。有谁知道如何解决这一问题? …

json typescript ionic-framework angular

9
推荐指数
1
解决办法
3085
查看次数

标签 统计

angular ×1

ionic-framework ×1

json ×1

typescript ×1