I’ve seen this a few times recently. Upon editing a line of code something seems to go out of sync and building produces a false error. Quitting the editor and deleting the build folder fixes the issue.
It’s hard to reproduce specifically so I can’t make a proper bug report. Has anyone else had something like this?