When I build my react project I get an error like this.

```
export type ExtractRouteOptionalParam<T extends string, U = string | number | boolean> = T extends `${infer Param}?`      
  ? { [k in Param]?: U }
  : T extends `${infer Param}*`
  ? { [k in Param]?: U }

```

[![Build log](https://i.stack.imgur.com/mLgyk.png)](https://i.stack.imgur.com/mLgyk.png)

How to solve this?