I encountered the same error, but my situation was slightly different.
The solutions mentioned above didn’t work for me, and I didn’t have a Mesh object.
My solution was:
- Intentionally build incorrect code, causing a build error.
- Close VSCode.
- Go back to UEFN, where I saw the Verse build error warning.
- From the UEFN menu, select “Open VSCode” again.
- Somehow, after that, it just started working normally.
This issue occurred after the v34.00 update.