I had the same problem until I changed how I wrote comments in my code. Instead of using // Some thing
, I started using curly braces like this: {/* Some thing */}
.
This issue started happening after I upgraded to Expo SDK 52. If you're facing the same error, try updating your comments to this format and see if it helps!