Having an issue with next.js, the command npm run dev
keeps failing due to a syntax error related to an optional property in a tsx file:
Syntax error: Unexpected token
44 |
45 | type State<T_HT> = {
> 46 | ghostHighlight: ?{
| ^
47 | position: T_ScaledPosition
48 | },
49 | isCollapsed: boolean,
Any ideas on what might be causing this and how to resolve it?