语法高亮没问题,但没有显示任何错误。 第 5 行应该在编辑器的行尾以红色显示错误,但不是。 为什么会这样?
我正在使用 monaco webpack 插件,带有这些配置。
index.js
SizedBox buildOutlineButton(
{required IconData icon, required Function press}) {
return SizedBox(
width: 40,
height: 32,
child: OutlinedButton(
style: OutlinedButton.styleFrom(
padding: EdgeInsets.zero,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(13.0)),
),
onPressed: () => press(),
child: Icon(icon),
),
);
}
webpack-config.js
<div class="container">
<app-workspace-nav></app-workspace-nav>
<div *ngFor="let key of seasonDocument | keyvalue">
<div *ngIf="key.key === 'results'">
<div style="text-align: center;" *ngFor="let result of seasonDocument.results">
<div style='display: flex'>
<div style='padding-left: 1rem; padding-right: 1rem;'>{{ result.Date }}</div>
<div style='padding-left: 1rem; padding-right: 1rem;'>{{result.HomeTeam}}</div>
<div style='padding-left: 1rem; padding-right: 1rem;'>{{result.FTHG}}-{{result.FTAG}}</div>
<div style='padding-left: 1rem; padding-right: 1rem;'>{{result.AwayTeam}}</div>
</div>
<br />
</div>
</div>
</div>
</div>