You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Angular Universal(SSR)出现“Rules skipped due to selector errors”错误求助

复现步骤

ng new testproject --style scss
cd testproject
ng add @ng-bootstrap/ng-bootstrap
npm run build

问题范围

该问题并非仅出现在ng-bootstrap中,bootstrap、tailwind等任意SCSS框架均可能触发。

错误信息

1 rules skipped due to selector errors:
  legend+* -> Cannot read properties of undefined (reading 'type')

出现场景

该错误在SSR构建或启动时出现,开发环境与生产环境均存在此问题。

内容的提问来源于stack exchange,提问作者JuanDa237

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 23:05:32