For me it turned out to be an exclamation mark (!) in a
element. Rookie error. Anyway, thanks to @atazmin for the suggestion to comment out different sections in the root layout component.