0

watch タスクの problemMatcher の設定に問題があります。正規表現は正しいようですが、コンソールに表示されても問題タブにエラーは表示されません。私は何が欠けていますか?

"problemMatcher": {
  "owner": "typescript",
  "fileLocation": "autoDetect",
  "pattern": [
    {
      "regexp": "(ERROR|WARNING) in (.+)\\(",
      "severity": 1,
      "file": 2
    },
    {
      "regexp": "^(\\d+):(\\d+) (.+)$",
      "line": 1,
      "column": 2,
      "message": 3,
      "loop": true
    }
  ],
  "background": {
    "activeOnStart": false,
    "beginsPattern": "Type checking in progress\\.\\.\\.",
    "endsPattern": "Time: \\d+ms"
  }
}

端末出力:

> Running compilation in watch mode
> Building component registry...
> Component registry built
> Starting type checking service...
> Type checking in progress...
> Type checking in progress...
× ERROR in C:/project/Shared/SizeGuide/index.tsx(180,8):
180:8 Cannot find name 'SizeGuideFlyout'. Did you mean 'SizeGuideInFlyout'?
    178 |   render() {
    179 |     return (
  > 180 |       <SizeGuideFlyout
        |        ^
    181 |         toggleFlyout={this.props.toggleSizeGuideFlyout}
    182 |         position={Position.Right}
    183 |         isOpen={this.props.isOpen}
> Version: typescript 3.7.2
> Time: 32ms
4

1 に答える 1